Plane
new Plane(normal?: Vector3, constant?: number)THREE equivalent: THREE.Plane
3D plane defined by a unit normal and a signed distance from the origin. Normalizes on construction.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
normal |
Vector3 |
Plane normal (unit length). |
constant |
number |
Signed distance from the origin along the normal. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
setFromCoplanarPoints(a: Vector3, b: Vector3, c: Vector3): this |
Defines the plane from three coplanar points. |
distanceToPoint(point: Vector3): number |
Returns the signed distance from the point to the plane. |
intersectLine(line: Line3, target?: Vector3): Vector3|undefined |
Returns the intersection point with a line segment, or undefined if parallel. |
intersectsSphere(sphere: Sphere): boolean |
Returns true if the sphere crosses the plane. |
projectPoint(point: Vector3, target?: Vector3): Vector3 |
Projects a point onto the plane. |
normalize(): this |
Normalizes the plane equation. |
clone(): Plane |
Returns a new Plane with the same normal and constant. |