Start point of line segment.
End point of line segment.
Gets the line's 3d axis aligned bounding box.
Determines whether this line is valid. A line is not valid when the start and end points are the same point.
Gets the length of this line segment.
Sets the length of this line segment. Note that a negative length will invert the line segment without making the actual length negative. The line From point will remain fixed when a new Length is set.
Finds the parameter on the (in)finite line segment that is closest to a test point.
The parameter on the line that is closest to testPoint.
Point to project onto the line.
If true, the projection is limited to the finite line segment. default: false
Finds the point on the (in)finite line segment that is closest to a test point.
The point on the (in)finite line that is closest to testPoint.
Point to project onto the line.
If true, the projection is limited to the finite line segment. default: false
Extend the line by custom distances on both sides.
The extended line.
Distance to extend the line at the start point. Positive distance result in longer lines.
Distance to extend the line at the end point. Positive distance result in longer lines.
Checks if a point is on the line.
Point to check.
If true, the check is limited on the finite line. default: false
Computes a point located at a specific metric distance from the line origin (From). If line start and end coincide, then the start point is always returned.
The newly found point.
A positive, 0, or a negative value that will be the distance from From.
Static
CreateStatic
LineStatic method to find the points closest to two lines given (crossing or intersecting) lines
[point1, point2] | null if the lines are parallel
Static
LineStatic
LineStatic
LineStatic
LineStatic
LineGenerated using TypeDoc
Represents the value of start and end points in a single line segment.