 OnSegment - Maple Help

geometry

 OnSegment
 find the point which divides the segment joining two given points by some ratio Calling Sequence OnSegment(C, A, B, k) OnSegment(C, seg, k) Parameters

 C - the name of the point to be created A, B - two points seg - segment k - ratio Description

 • The routine returns point C which is the point lying on the segment defined by two points A, B with ratio k
 • For a detailed description of point C, use the routine detail (i.e., detail(C))
 • The command with(geometry,OnSegment) allows the use of the abbreviated form of this command. Examples

 > $\mathrm{with}\left(\mathrm{geometry}\right):$
 > $\mathrm{point}\left(A,0,0\right),\mathrm{point}\left(B,2,0\right)$
 ${A}{,}{B}$ (1)
 > $\mathrm{OnSegment}\left(\mathrm{C1},A,B,1\right)$
 ${\mathrm{C1}}$ (2)
 > $\mathrm{coordinates}\left(\mathrm{C1}\right)$
 $\left[{1}{,}{0}\right]$ (3)
 > $\mathrm{OnSegment}\left(\mathrm{C2},A,B,\frac{1}{2}\right)$
 ${\mathrm{C2}}$ (4)
 > $\mathrm{coordinates}\left(\mathrm{C2}\right)$
 $\left[\frac{{2}}{{3}}{,}{0}\right]$ (5)