Difference between revisions of "Midpoint Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.2}}</noinclude> | <noinclude>{{Manual Page|version=4.2}}</noinclude> | ||
{{command|geometry}} | {{command|geometry}} | ||
− | |||
;Midpoint[ <Segment> ] | ;Midpoint[ <Segment> ] | ||
:Returns the midpoint of the segment. | :Returns the midpoint of the segment. | ||
− | + | :{{example|1=<div>Let <code><nowiki>s = Segment[(1, 1), (1, 5)]</nowiki></code>. <br> <code><nowiki>Midpoint[s]</nowiki></code> yields ''(1, 3)''.</div>}} | |
− | |||
;Midpoint[ <Conic> ] | ;Midpoint[ <Conic> ] | ||
:Returns the center of the conic. | :Returns the center of the conic. | ||
− | + | :{{example|1=<div><code><nowiki>Midpoint[x^2 + y^2 = 4]</nowiki></code> yields ''(0, 0)''.</div>}} | |
− | |||
;Midpoint[ <Interval> ] | ;Midpoint[ <Interval> ] | ||
:Returns the midpoint of the interval (as number). | :Returns the midpoint of the interval (as number). | ||
− | + | :{{example|1=<div><code><nowiki>Midpoint[2 < x < 4]</nowiki></code> yields ''3''.</div>}} | |
− | |||
;Midpoint[ <Point>, <Point> ] | ;Midpoint[ <Point>, <Point> ] | ||
:Returns the midpoint of two points. | :Returns the midpoint of two points. | ||
− | + | :{{example|1=<div><code><nowiki>Midpoint[(1, 1), (5, 1)]</nowiki></code> yields ''(3, 1)''.</div>}} | |
− | |||
{{Note|1=See also [[image : Tool_Midpoint_or_Center.gif]] [[Midpoint or Center Tool|Midpoint or Center]] tool.}} | {{Note|1=See also [[image : Tool_Midpoint_or_Center.gif]] [[Midpoint or Center Tool|Midpoint or Center]] tool.}} | ||
{{betamanual|version=5.0|{{Note|1=From GeoGebra 5, this command will work with 3D objects as well}} | {{betamanual|version=5.0|{{Note|1=From GeoGebra 5, this command will work with 3D objects as well}} | ||
}} | }} |
Revision as of 08:13, 4 September 2013
- 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:
Midpoint[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).
Note: See also Midpoint or Center tool.
Following text is about a feature that is supported only in GeoGebra 5.0.
Note: From GeoGebra 5, this command will work with 3D objects as well |