Plane
A plane.
Constructor Summary
Public Constructor | ||
public |
constructor(normal: Vector3, constant: Number) Constructs a new plane. |
Member Summary
Public Members | ||
public |
The constant. |
|
public |
The normal. |
Method Summary
Public Methods | ||
public |
Clones this plane. |
|
public |
coplanarPoint(target: Vector3): Vector3 Calculates a coplanar point and returns it. |
|
public |
Copies the given plane. |
|
public |
distanceToPoint(p: Vector3): Number Calculates the distance from this plane to the given point. |
|
public |
distanceToSphere(s: Sphere): Number Calculates the distance from this plane to the given sphere. |
|
public |
Checks if this plane equals the given one. |
|
public |
intersectLine(l: Line3, target: Vector3): Vector3 Finds the point of intersection between this plane and a given line. |
|
public |
intersectsBox(b: Box3): Boolean Checks if this plane intersects with the given box. |
|
public |
intersectsLine(l: Line3): Boolean Checks if this plane intersects with the given line. |
|
public |
Checks if this plane intersects with the given sphere. |
|
public |
Negates this plane. |
|
public |
Normalizes this plane. |
|
public |
projectPoint(p: Vector3, target: Vector3): Vector3 Projects the given point on this plane. |
|
public |
Sets the normal and the constant. |
|
public |
Sets the components of this plane. |
|
public |
setFromCoplanarPoints(p0: Vector3, p1: Vector3, p2: Vector3): Plane Sets this plane from three distinct coplanar points. |
|
public |
Sets this plane from a normal and a coplanar point. |
|
public |
Translates this plane. |
Public Constructors
Public Members
Public Methods
public coplanarPoint(target: Vector3): Vector3 source
Calculates a coplanar point and returns it.
Params:
Name | Type | Attribute | Description |
target | Vector3 |
|
A target vector. If none is provided, a new one will be created. |
public copy(p: Plane): Plane source
Copies the given plane.
Params:
Name | Type | Attribute | Description |
p | Plane | A plane. |
public distanceToPoint(p: Vector3): Number source
Calculates the distance from this plane to the given point.
Params:
Name | Type | Attribute | Description |
p | Vector3 | A point. |
public distanceToSphere(s: Sphere): Number source
Calculates the distance from this plane to the given sphere.
Params:
Name | Type | Attribute | Description |
s | Sphere | A sphere. |
public equals(p: Plane): Boolean source
Checks if this plane equals the given one.
Params:
Name | Type | Attribute | Description |
p | Plane | A plane. |
public intersectLine(l: Line3, target: Vector3): Vector3 source
Finds the point of intersection between this plane and a given line.
public intersectsBox(b: Box3): Boolean source
Checks if this plane intersects with the given box.
Params:
Name | Type | Attribute | Description |
b | Box3 | A box. |
public intersectsLine(l: Line3): Boolean source
Checks if this plane intersects with the given line.
Params:
Name | Type | Attribute | Description |
l | Line3 | A line. |
public intersectsSphere(s: Sphere): Boolean source
Checks if this plane intersects with the given sphere.
Params:
Name | Type | Attribute | Description |
s | Sphere | A sphere. |
public projectPoint(p: Vector3, target: Vector3): Vector3 source
Projects the given point on this plane.
public setComponents(x: Number, y: Number, z: Number, w: Number): Plane source
Sets the components of this plane.
public setFromCoplanarPoints(p0: Vector3, p1: Vector3, p2: Vector3): Plane source
Sets this plane from three distinct coplanar points.