geometry
OnSegment
find the point which divides the segment joining two given points by some ratio
Calling Sequence
Parameters
Description
Examples
OnSegment(C, A, B, k)
OnSegment(C, seg, k)
C
-
the name of the point to be created
A, B
two points
seg
segment
k
ratio
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.
with⁡geometry:
point⁡A,0,0,point⁡B,2,0
A,B
OnSegment⁡C1,A,B,1
C1
coordinates⁡C1
1,0
OnSegment⁡C2,A,B,12
C2
coordinates⁡C2
23,0
See Also
geometry[CrossRatio]
geometry[point]
geometry[segment]
Download Help Document