Difference between revisions of "ClosestPoint Command"

From GeoGebra Manual
Jump to: navigation, search
Line 8: Line 8:
  
 
{{betamanual|version=5.0|1=
 
{{betamanual|version=5.0|1=
{{Note|1=From GeoGebra 5, these syntaxes will work as well}}}}
+
{{Note|1=From GeoGebra 5, these syntaxes will work as well.}}}}
 
;ClosestPoint[ <Region>, <Point> ]
 
;ClosestPoint[ <Region>, <Point> ]
 
:Returns a new point on the [[Geometric_Objects#Regions|region]] which is the closest to a selected point.
 
:Returns a new point on the [[Geometric_Objects#Regions|region]] which is the closest to a selected point.
 
;ClosestPoint[ <Line>, <Line> ]
 
;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>}}
 

Revision as of 08:34, 30 July 2014



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[ <Region>, <Point> ]
Returns a new point on the 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.
© 2021 International GeoGebra Institute