Difference between revisions of "ClosestPoint Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)")
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|geogebra}}
{{command|geogebra}}
+
;ClosestPoint( <Path>, <Point> )
;ClosestPoint[ <Path>, <Point> ]
 
 
:Returns a new point on a [[Geometric Objects#Paths|path]] which is the closest to a selected point.
 
:Returns a new point on a [[Geometric Objects#Paths|path]] which is the closest to a selected point.
{{Note| For [[Functions]], this command now uses closest point (rather than vertical point). This works best for polynomials; for other functions the numerical algorithm is less stable. }}
+
:{{Note| For [[Functions]], this command now uses closest point (rather than vertical point). This works best for polynomials; for other functions the numerical algorithm is less stable. }}
  
  
 
+
;ClosestPoint( <Line>, <Line> )
{{betamanual|version=5.0|1=
 
{{Note|1=From GeoGebra 5, these syntaxes will work as well}}}}
 
;ClosestPoint[ <Region>, <Point> ]
 
:Returns a new point on the [[Geometric_Objects#Regions|region]] which is the closest to a selected point.
 
;ClosestPoint[ <Line>, <Line> ]
 
 
:Returns a new point on the first line which is the closest to the second line.
 
:Returns a new point on the first line which is the closest to the second line.
:{{note| 1=<div>If the two lines are intersecting <code><nowiki>ClosestPoint[ <Line>, <Line> ]</nowiki></code> yields ''0''.</div>}}
 

Latest revision as of 17:15, 7 October 2017


ClosestPoint( <Path>, <Point> )
Returns a new point on a path which is the closest to a selected point.
Note: For Functions, this command now uses closest point (rather than vertical point). This works best for polynomials; for other functions the numerical algorithm is less stable.


ClosestPoint( <Line>, <Line> )
Returns a new point on the first line which is the closest to the second line.
© 2021 International GeoGebra Institute