[name]
A two dimensional surface that extends infinitely in 3d space.
Constructor
[name]([page:Vector3 normal], [page:Float constant])
normal -- the normal vector defining the plane
constant -- the distance from the origin to the plane along the normal vector
Properties
.[page:Vector3 normal]
[Page:Vector3] representing the normal vector that definesthe plane
.[page:Float constant]
[Page:Float] describing the distance from the origin to the plane along the normal vector
Methods
.normalize() [page:Plane this]
Normalizes the normal vector, and adjusts the constant value accordingly.
.set([page:Vector3 normal], [page:Float constant]) [page:Plane this]
normal -- [Page:Vector3]
constant -- [Page: Float]
Sets the plane's values.
.copy([page:Plane plane]) [page:Plane this]
plane -- [page:Plane] to copy
Copies the values of the passed plane to this plane.
.applyMatrix4([page:Matrix4 matrix], [page:Matrix3 optionalNormalMatrix]) [page:Plane this]
matrix -- [Page:Matrix4] to apply
optionalNormalMatrix -- (optional) normal [Page:Matrix3] of the Matrix4 to apply
Apply a Matrix4 to the plane. The second parameter is is optional, but if not provided a new Matrix3 will be created each time this method is called.
var optionalNormalMatrix = new THREE.Matrix3().getNormalMatrix( matrix )
.orthoPoint([page:todo point], [page:todo optionalTarget]) [page:todo]
point -- todo
optionalTarget -- todo
todo
.isIntersectionLine([page:todo line]) [page:todo]
line -- todo
todo
.intersectLine([page:todo line], [page:todo optionalTarget]) [page:todo]
line -- todo
optionalTarget -- todo
todo
.setFromNormalAndCoplanarPoint([page:todo normal], [page:todo point]) [page:todo]
normal -- todo
point -- todo
todo
.clone() [page:todo]
todo
.distanceToPoint([page:todo point]) [page:todo]
point -- todo
todo
.equals([page:todo plane]) [page:todo]
plane -- todo
todo
.setComponents([page:todo x], [page:todo y], [page:todo z], [page:todo w]) [page:todo]
x -- todo
y -- todo
z -- todo
w -- todo
todo
.distanceToSphere([page:todo sphere]) [page:todo]
sphere -- todo
todo
.setFromCoplanarPoints([page:todo a], [page:todo b], [page:todo c]) [page:todo]
a -- todo
b -- todo
c -- todo
todo
.projectPoint([page:todo point], [page:todo optionalTarget]) [page:todo]
point -- todo
optionalTarget -- todo
todo
.negate() [page:todo]
todo
.translate([page:todo offset]) [page:todo]
offset -- todo
todo
.coplanarPoint([page:todo optionalTarget]) [page:todo]
optionalTarget -- todo
todo
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]