Example
Is a Point on a Line?
Both geometric.pointOnLine(point, line) and geometric.pointWithLine(point, line) test whether a point is colinear with a line. However, pointOnLine will return true only if the point is also located on the line segment.
Drag the slider below to see how the position of the circle affects the output of these functions: the circle will be blue if both are true, while it will be red if only pointWithLine is true.
Code