[name]
A two dimensional surface that extends infinitely in 3d space, defined by
a [link:https://en.wikipedia.org/wiki/Normal_(geometry) normal vector], and a
distance from the origin along the normal.
Constructor
[name]( [page:Vector3 normal], [page:Float constant] )
[page:Vector3 normal] - (optional) a [page:Vector3] defining the direction of the
plane. Default is *(1, 0, 0)*.
[page:Float constant] - (optional) the negative distance from the origin to the plane along
the [page:Vector3 normal] vector. Default is *0*.
Properties
[property:Vector3 normal]
[property:Float constant]
Methods
[method:Plane applyMatrix4]( [page:Matrix4 matrix], [page:Matrix3 optionalNormalMatrix] )
[page:Matrix4 matrix] - the [Page:Matrix4] to apply.
[page:Matrix3 optionalNormalMatrix] - (optional) pre-computed normal [Page:Matrix3] of the Matrix4 being applied.
Apply a Matrix4 to the plane. The matrix must be an affine, homogeneous transform.
If supplying an [page:Matrix3 optionalNormalMatrix], it can be created like so:
var optionalNormalMatrix = new THREE.Matrix3().getNormalMatrix( matrix );
[method:Plane clone]()
Returns a new plane with the same [page:.normal normal] and [page:.constant constant] as this one.
[method:Vector3 coplanarPoint]( [page:Vector3 optionalTarget] )
[page:Vector3 optionalTarget] - (optional) if specified, the result will be copied into this [page:Vector3],
otherwise a new [page:Vector3] will be created.
Returns a [page:Vector3] coplanar to the plane, by calculating the projection of the
normal vector at the origin onto the plane.
[method:Plane copy]( [page:Plane plane] )
Copies the values of the passed plane's [page:.normal normal] and [page:.constant constant]
properties to this plane.
[method:Float distanceToPoint]( [page:Vector3 point] )
Returns the smallest distance from the [page:Vector3 point] to the plane.
[method:Float distanceToSphere]( [page:Sphere sphere] )
Returns the smallest distance from the [page:Sphere sphere] to the plane.
[method:Boolean equals]( [page:Plane plane] )
Checks to see if two planes are equal (their [page:.normal normal] and
[page:.constant constant] properties match).
[method:Vector3 intersectLine]( [page:Line3 line], [page:Vector3 optionalTarget] ) or [page:undefined]
[page:Line3 line] - the [page:Line3] to check for intersection.
[page:Vector3 optionalTarget] - (optional) if specified, the result will be copied into this [page:Vector3],
otherwise a new [page:Vector3] will be created.
Returns the intersection point of the passed line and the plane. Returns undefined
if the line does not intersect. Returns the line's starting point if the line is
coplanar with the plane.
[method:Boolean intersectsBox]( [page:Box3 box] )
[page:Box3 box] - the [page:Box3] to check for intersection.
Determines whether or not this plane intersects [page:Box3 box].
[method:Boolean intersectsLine]( [page:Line3 line] )
[page:Line3 line] - the [page:Line3] to check for intersection.
Tests whether a line segment intersects with (passes through) the plane.
[method:Boolean intersectsSphere]( [page:Sphere sphere] )
[page:Sphere sphere] - the [page:Sphere] to check for intersection.
Determines whether or not this plane intersects [page:Sphere sphere].
[method:Plane negate]()
Negates both the normal vector and constant, effectively mirroring the plane across
the origin.
[method:Plane normalize]()
Normalizes the [page:.normal normal] vector, and adjusts the [page:.constant constant]
value accordingly.
[method:Vector3 orthoPoint]( [page:Vector3 point], [page:Vector3 optionalTarget] )
[page:Vector3 point] - [page:Vector3]
[page:Vector3 optionalTarget] - (optional) if specified, the result will be copied
into this [page:Vector3], otherwise a new [page:Vector3] will be created.
Returns a vector in the same direction as the Plane's normal, but with magnitude
equal to the passed point's original distance to the plane.
[method:Vector3 projectPoint]( [page:Vector3 point], [page:Vector3 optionalTarget] )
[page:Vector3 point] - the [page:Vector3] to project onto the plane.
[page:Vector3 optionalTarget] - (optional) if specified, the result will be copied into this [page:Vector3],
otherwise a new [page:Vector3] will be created.
Projects a [page:Vector3 point] onto the plane. The projected point is the closest
point on the plane to the passed point, so a line drawn from the projected point
and the passed point would be orthogonal to the plane.
[method:Plane set]( [page:Vector3 normal], [page:Float constant] )
[page:Vector3 normal] - a [page:Vector3] defining the direction of the plane.
[page:Float constant] - (optional) the negative distance from the origin to the plane along
the [page:Vector3 normal] vector. Default is *0*.
Sets the plane's [page:.normal normal] and [page:.constant constant] properties.
[method:Plane setComponents]( [page:Float x], [page:Float y], [page:Float z], [page:Float w] )
[page:Float x] - x value of the normal vector.
[page:Float y] - y value of the normal vector.
[page:Float z] - z value of the normal vector.
[page:Float w] - the value of the plane's [page:.constant constant] property.
Set the individual components that make up the plane.
[method:Plane setFromCoplanarPoints]( [page:Vector3 a], [page:Vector3 b], [page:Vector3 c] )
[page:Vector3 a] - first point on the plane.
[page:Vector3 a] - second point on the plane.
[page:Vector3 a] - third point on the plane.
Defines the plane based on the 3 provided points. The winding order is counter
clockwise, and determines which direction the [page:.normal normal] will point.
[method:Plane setFromNormalAndCoplanarPoint]( [page:Vector3 normal], [page:Vector3 point] ) [page:Vector3 this]
[page:Vector3 normal] - a [page:Vector3] defining the direction of the plane.
[page:Vector3 point] - [page:Vector3]
Sets the plane's properties as defined by a [page:Vector3 normal] and an arbitrary coplanar [page:Vector3 point].
[method:Plane translate]( [page:Vector3 offset] )
[page:Vector3 offset] - the amount to move the plane by.
Translates the plane the distance defined by the [page:Vector3 offset] vector.
Note that this only affects the constant (distance from origin) and will not affect
the normal vector.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]