Difference between revisions of "Midpoint Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(command syntax: changed [ ] into ( ))
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|geometry}}
{{command|geometry}}
+
;Midpoint( <Segment> )
;Midpoint[ <Point A>, <Point B> ]: Returns the midpoint of points ''A'' and ''B''.
+
:Returns the midpoint of the segment.
;Midpoint[ <Segment> ]: Returns the midpoint of the segment.
+
:{{example|1=Let <code><nowiki>s = Segment((1, 1), (1, 5))</nowiki></code>.  <code><nowiki>Midpoint(s)</nowiki></code> yields ''(1, 3)''.}}
;Midpoint[ <Interval> ]: Returns the midpoint of the interval (as number).
+
;Midpoint( <Conic> )
;Midpoint[ <Conic> ]: Returns the center of the conic.
+
:Returns the center of the conic.
{{Note|1=See also [[image : Tool_Midpoint_or_Center.gif]]  [[Midpoint or Center Tool|Midpoint or Center]] tool.}}
+
:{{example|1=<code><nowiki>Midpoin(x^2 + y^2 = 4)</nowiki></code> yields ''(0, 0)''.}}
{{betamanual|version=5.0|{{Note|1=From GeoGebra 5, this command will work with 3D objects as well}}
+
;Midpoint( <Interval> )
}}
+
:Returns the midpoint of the interval (as number).
 +
:{{example|1=<code><nowiki>Midpoint(2 < x < 4)</nowiki></code> yields ''3''.}}
 +
;Midpoint( <Point>, <Point> )
 +
:Returns the midpoint of two points.
 +
:{{example|1=<code><nowiki>Midpoint((1, 1), (5, 1))</nowiki></code> yields ''(3, 1)''.}}
 +
;Midpoint( <Quadric> )
 +
:Returns the midpoint of the given quadric (e.g. sphere, cone, etc.)
 +
:{{example| 1=<code><nowiki>Midpoint(x^2 + y^2 + z^2 = 1)</nowiki></code> yields ''(0, 0, 0)''.}}
 +
{{Note|1=See also [[File:Mode midpoint.svg|link=|24px]]  [[Midpoint or Center Tool|Midpoint or Center]] tool.}}

Latest revision as of 09:29, 11 October 2017


Midpoint( <Segment> )
Returns the midpoint of the segment.
Example: Let s = Segment((1, 1), (1, 5)). Midpoint(s) yields (1, 3).
Midpoint( <Conic> )
Returns the center of the conic.
Example: Midpoin(x^2 + y^2 = 4) yields (0, 0).
Midpoint( <Interval> )
Returns the midpoint of the interval (as number).
Example: Midpoint(2 < x < 4) yields 3.
Midpoint( <Point>, <Point> )
Returns the midpoint of two points.
Example: Midpoint((1, 1), (5, 1)) yields (3, 1).
Midpoint( <Quadric> )
Returns the midpoint of the given quadric (e.g. sphere, cone, etc.)
Example: Midpoint(x^2 + y^2 + z^2 = 1) yields (0, 0, 0).
Note: See also Mode midpoint.svg Midpoint or Center tool.
© 2024 International GeoGebra Institute