pointOnSegment(x, y) → {boolean}
Tests if the given coordinates fall on this line and within the segment. See pointOnLine to test against just the line.
Parameters
Name | Type | Description |
---|---|---|
x | number | The line to check against this one. |
y | number | The line to check against this one. |
Returns
boolean -
True if the point is on the line and segment, false if not.
- Source code: geom/Line.js (Line 238)
Please login to continue.