Compute the scaled position along the line. When t = 0, it returns the start vector. When t = 1 it returns the end vector.
The position on the line.
Use values 0-1 to return a position along the line segment.
— the result will be copied into this Vector3.
Create a new Line3 with the same start and end vectors as this one.
The new instance.
Find the closest point on the line. If clampToLine is true, then the returned value will be clamped to the line segment.
The closest point.
Compute a point parameter based on the closest point as projected on the line segment. If clampToLine is true, then the returned value will be between 0 and 1.
The scaled proportion.
the point for which to return a point parameter.
Optional
clampToLine: booleanWhether to clamp the result to the range [0, 1].
Compute the Euclidean distance (straight-line distance) between the line's start and end points.
The Euclidean distance.
Compute the square of the Euclidean distance (straight-line distance) between the line's start and end vectors.
The distance squared.
Test for value equality.
True if both line's start and end points are equal.
Line3 to compare with this one.
A geometric line segment represented by a start and end point.