Difference between revisions of "Distance Command"

From GeoGebra Manual
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|geometry}}
 
{{command|geometry}}
; Distance[Point A, Object]: Yields the (shortest) distance between points ''A'' and the Object. Works for Points, Segments, Lines, Paths, Conics and Implicit Curves.
+
; Distance[Point A, Object O]: Yields the (shortest) distance between points ''A'' and the Object. Works for Points, Segments, Lines, Conics and Implicit Curves. When ''f'' is a function, <code>Distance[A,f]</code> returns distance between ''A'' and ''(x(A),f(x(A))''.
 
: {{Note| In GeoGebra 3.2  '''Distance[Point A, Segment]''' gave the distance to the segment extended to an infinite line. From GeoGebra 4.0 it gives the distance to the Segment itself. }}
 
: {{Note| In GeoGebra 3.2  '''Distance[Point A, Segment]''' gave the distance to the segment extended to an infinite line. From GeoGebra 4.0 it gives the distance to the Segment itself. }}
 
; Distance[Line g, Line h]: Yields the distance between the parallel lines ''g'' and ''h''.
 
; Distance[Line g, Line h]: Yields the distance between the parallel lines ''g'' and ''h''.
 
: {{Note| The distance between intersecting lines is 0. Thus, this command is only interesting for parallel lines.}}
 
: {{Note| The distance between intersecting lines is 0. Thus, this command is only interesting for parallel lines.}}
 
: {{Note| See also [[Image:Tool Distance.gif]] [[Distance or Length Tool|Distance or Length]] tool .}}
 
: {{Note| See also [[Image:Tool Distance.gif]] [[Distance or Length Tool|Distance or Length]] tool .}}

Revision as of 16:18, 22 July 2011


Distance[Point A, Object O]
Yields the (shortest) distance between points A and the Object. Works for Points, Segments, Lines, Conics and Implicit Curves. When f is a function, Distance[A,f] returns distance between A and (x(A),f(x(A)).
Note: In GeoGebra 3.2 Distance[Point A, Segment] gave the distance to the segment extended to an infinite line. From GeoGebra 4.0 it gives the distance to the Segment itself.
Distance[Line g, Line h]
Yields the distance between the parallel lines g and h.
Note: The distance between intersecting lines is 0. Thus, this command is only interesting for parallel lines.
Note: See also Tool Distance.gif Distance or Length tool .
© 2024 International GeoGebra Institute