geometry
midpoint
find the midpoint of segment joining two points
Calling Sequence
Parameters
Description
Examples
midpoint(C, A, B)
midpoint(C, seg)
C
-
the name of the midpoint
A, B
two points
seg
segment
The routine finds the midpoint of two points A, B, or of a segment seg.
For a detailed description of the midpoint C, use the routine detail (i.e., detail(C))
The command with(geometry,midpoint) allows the use of the abbreviated form of this command.
with⁡geometry:
point⁡A,0,0,point⁡B,2,0:
midpoint⁡C1,A,B
C1
coordinates⁡C1
1,0
segment⁡seg,A,B:
midpoint⁡C2,seg:
detail⁡C2
name of the objectC2form of the objectpoint2dcoordinates of the point1,0
See Also
geometry[OnSegment]
geometry[point]
Download Help Document