Vector3 representing the end point of the line.
Vector3 representing the start point of the line.
return the closest point on the line to this point.
whether to clamp the returned value to the line segment.
The result will be copied into this Vector3.
Returns the closets point on the line. If clampToLine is true, then the returned value will be clamped to the line segment.
If clampToLine is true, then the returned value will be between 0 and 1.
The point for which to return a point parameter.
Whether to clamp the result to the range [0, 1].
Returns a point parameter based on the closest point as projected on the line segement.
(straight-line distance) between the line's .start and .end points.
Returns the Euclidean distance
Returns the square of the Euclidean distance (straight-line distance) between the line's .start and .end vectors.
Generated using TypeDoc
A geometric line segment represented by a start and end point. See the ngx3js docs page for details.