| isPointOnSeg | R Documentation |
This function checks if a point P is on a segment AB.
isPointOnSeg(xPoint, yPoint, xStart, yStart, xEnd, yEnd)
xPoint |
x coordinate of point P. |
yPoint |
y coordinate of point P. |
xStart |
x coordinate of point A. |
yStart |
y coordinate of point A. |
xEnd |
x coordinate of point B. |
yEnd |
y coordinate of point B. |
Logical; whether the point is on the segment.
isPointOnSeg(2, 3, 1, 2, 3, 4)
isPointOnSeg(2, 3, 1, 2, 3, 8)
isPointOnSeg(4, 5, 1, 2, 3, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.