
A plane in 3D space.
Kind: global class
PlanePlanePlanePlanePlanePlanePlaneNumberNumberBooleanBooleanVector3PlaneBooleanPlaneCreate the plane.
| Param | Type | Default | Description |
|---|---|---|---|
| normal | Vector3 |
Plane normal vector. | |
| constant | Number |
0 |
Plane constant. |
PlaneSet the plane components.
Kind: instance method of Plane
Returns: Plane - Self.
| Param | Type | Description |
|---|---|---|
| normal | Vector3 |
Plane normal. |
| constant | Number |
Plane constant. |
PlaneSet the plane components.
Kind: instance method of Plane
Returns: Plane - Self.
| Param | Type | Description |
|---|---|---|
| x | Number |
Plane normal X. |
| y | Number |
Plane normal Y. |
| z | Number |
Plane normal Z. |
| w | Number |
Plane constant. |
PlaneSet plane from normal and coplanar point vectors.
Kind: instance method of Plane
Returns: Plane - Self.
| Param | Type | Description |
|---|---|---|
| normal | Vector3 |
Plane normal. |
| point | Vector3 |
Coplanar point. |
PlaneCopy values from another plane.
Kind: instance method of Plane
Returns: Plane - Self.
| Param | Type | Description |
|---|---|---|
| plane | Plane |
Plane to copy. |
PlaneNormalize the plane.
Kind: instance method of Plane
Returns: Plane - self.
PlaneNormalize a clone of this plane.
Kind: instance method of Plane
Returns: Plane - Normalized clone.
PlaneNegate this plane.
Kind: instance method of Plane
Returns: Plane - Self.
NumberCalculate distance to point.
Kind: instance method of Plane
Returns: Number - Distance to point.
| Param | Type | Description |
|---|---|---|
| point | Vector3 |
Point to calculate distance to. |
NumberCalculate distance to sphere.
Kind: instance method of Plane
Returns: Number - Distance to sphere.
| Param | Type | Description |
|---|---|---|
| sphere | Sphere |
Sphere to calculate distance to. |
BooleanCheck if this plane collide with a line.
Kind: instance method of Plane
Returns: Boolean - True if collide, false otherwise.
| Param | Type | Description |
|---|---|---|
| line | Line |
Line to check. |
BooleanCheck if this plane collide with a sphere.
Kind: instance method of Plane
Returns: Boolean - True if collide, false otherwise.
| Param | Type | Description |
|---|---|---|
| sphere | Sphere |
Sphere to check. |
Vector3Coplanar a point.
Kind: instance method of Plane
Returns: Vector3 - Coplanar point as a new vector.
PlaneTranslate this plane.
Kind: instance method of Plane
Returns: Plane - Self.
| Param | Type | Description |
|---|---|---|
| offset | Vector3 |
Offset to translate to. |
BooleanCheck if this plane equals another plane.
Kind: instance method of Plane
Returns: Boolean - True if equal, false otherwise.
| Param | Type | Description |
|---|---|---|
| plane | Plane |
Other plane to compare to. |
PlaneClone this plane.
Kind: instance method of Plane
Returns: Plane - Cloned plane.