Line3
An analytical line segment in 3D space represented by a start and end point.
The segment is mutable and not thread-safe; confine an instance (and any object graph holding it) to a single thread, exactly as in three.js.
The constructor stores the given vectors by reference (it does not copy them). Passing the same vector as both endpoints, or sharing a vector with another object, means later mutations are visible through every alias. Use set or clone when you need independent storage.
Constructors
Properties
Functions
Link copied to clipboard
Applies a 4x4 transformation matrix matrix to this line segment.
Link copied to clipboard
Link copied to clipboard
Returns a point parameter based on the closest point as projected on the line segment.
Link copied to clipboard
Returns the squared Euclidean distance between the line's start and end point.
Link copied to clipboard