An array of that forms a line via [x,y,z,x,y,z,...] tuples.
Compute squared distance between two 2D points a
and b
.
Point a.x
Point a.y
Point b.x
Point b.y
Squared distance between the two points
Compute squared distance between a 2D point and a 2D line segment.
Test point X
Test point y
Line segment start X
Line segment start Y
Line segment end X
Line segment end Y
Squared distance between point and line segment
Finds the intersections of a line and a circle.
abscissa of first line point.
ordinate of second line point.
abscissa of second line point.
ordinate of second line point.
circle radius.
abscissa of circle center.
ordinate of circle center.
coordinates of the intersections (1 if the line is tangent to the circle, 2 if it's secant) or undefined if there's no intersection.
Computes the intersection point between two lines.
x coordinate of the first point of the first line.
y coordinate of the first point of the first line.
x coordinate of the second point of the first line.
y coordinate of the second point of the first line.
x coordinate of the first point of the second line.
y coordinate of the first point of the second line.
x coordinate of the second point of the second line.
y coordinate of the second point of the second line.
The resulting point.
Generated using TypeDoc
Computes the squared length of a line.