Difference between revisions of "ClosestPoint Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)")
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|geogebra}}
{{command|geogebra}}
+
;ClosestPoint( <Path>, <Point> )
;ClosestPoint[Path P, Point A]
+
:Returns a new point on a [[Geometric Objects#Paths|path]] which is the closest to a selected point.
:Returns a point on [[Geometric Objects#Paths|path]] ''P'' which is the closest to point ''A''.
+
:{{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 will return the point vertically in line rather than the nearest point}}
 
  
{{betamanual|version=5.0|
+
 
{{Note|1=From GeoGebra 5, these syntaxes will work as well: ClosestPoint[ <Region>, <Point> ], ClosestPoint[ <Line>, <Line> ]}}
+
;ClosestPoint( <Line>, <Line> )
}}
+
:Returns a new point on the first line which is the closest to the second line.

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