Plane
A two dimensional surface that extends infinitely in 3D space, represented in Hessian normal form by a unit length normal vector and a constant.
The plane is mutable and not thread-safe. Use each instance from one thread only.
The constructor stores the given normal by reference (it does not copy it). Sharing that vector with another object means later mutations are visible through every alias; use set/setComponents or clone for independent storage.
Constructors
Properties
Functions
Applies a 4x4 matrix matrix to the plane. The matrix must be an affine, homogeneous transform.
Writes the point on the plane closest to the origin into target. Assumes a unit-length normal.
Returns the signed distance from the given point to this plane.
Returns the signed distance from the given sphere to this plane.
Returns true if the given bounding box box intersects with the plane.
Returns true if the given line segment line intersects with (passes through) the plane.
Returns true if the given bounding sphere sphere intersects with the plane.