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.
Optional
target: Vector3— the result will be copied into this Vector3.
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].
A geometric line segment represented by a start and end point.