A two dimensional surface that extends infinitely in 3D space, represented by a unit length normal vector and a constant.
(1, 0, 0).0.Read-only flag to check if a given object is of type Plane.
Apply a Matrix4 to the plane. The matrix must be an affine, homogeneous transform. If supplying an optionalNormalMatrix, it can be created like so:
const optionalNormalMatrix = new v3d.Matrix3().getNormalMatrix(matrix);
Returns a new plane with the same normal and constant as this one.
target — the result will be copied into this Vector3.
Returns a Vector3 coplanar to the plane, by calculating the projection of the normal vector at the origin onto the plane.
Copies the values of the passed plane's normal and constant properties to this plane.
Returns the signed distance from the point to the plane.
Returns the signed distance from the sphere to the plane.
Checks to see if two planes are equal (their normal and constant properties match).
Returns the intersection point of the passed line and the plane. Returns null if the line does not intersect. Returns the line's starting point if the line is coplanar with the plane.
box — the Box3 to check for intersection.
Determines whether or not this plane intersects box.
line — the Line3 to check for intersection.
Tests whether a line segment intersects with (passes through) the plane.
sphere — the Sphere to check for intersection.
Determines whether or not this plane intersects sphere.
Negates both the normal vector and the constant.
Normalizes the normal vector, and adjusts the constant value accordingly.
Projects a point onto the plane.
0.Sets this plane's normal and constant properties by copying the values from the given normal.
Set the individual components that define the plane.
Defines the plane based on the 3 provided points. The winding order is assumed to be counter-clockwise, and determines the direction of the normal.
Sets the plane's properties as defined by a normal and an arbitrary coplanar point.
offset — the amount to move the plane by.
Translates the plane by the distance defined by the offset vector. Note that this only affects the plane constant and will not affect the normal vector.
For more info on how to obtain the source code of this module see this page.