| |
- AreLinesOrthogonal(line1, line2, tolerance)
- Returns true if lines are within tolerance radians of being orthogonal.
- ExtendLines(lines, length)
- Extends lines in an array to a given length, maintaining the center
point. Does not necessarily maintain point order.
- FindLineIntersection(line1, line2)
- If the line segments intersect, returns True and their intersection.
Otherwise, returns False and the intersection of the line segments if they
were to be extended.
- IsPointApproxOnLine(point, line, tolerance=1)
- Approximates distance between point and line for small distances using
the determinant and checks whether it's within the tolerance. Tolerance is
an approximate distance in pixels, precision decreases with distance.
- SqDistance(point1, point2)
- Computes the square of the distance between two points.
- SqDistances(points1, points2)
- Computes the square of the distance between two sets of points, or a
set of points and a point.
|