Plane class
Class representing a plane in 3D space. The plane is specified in Hessian normal form.
@author {@link https://github.com/Mugen87|Mugen87}
Constructors
Properties
Methods
-
clone(
) → Plane - Creates a new plane and copies all values from this plane.
-
copy(
Plane plane) → Plane - Copies all values from the given plane to this plane.
-
distanceToPoint(
Vector3 point) → double - Computes the signed distance from the given 3D vector to this plane. The sign of the distance indicates the half-space in which the points lies. Zero means the point lies on the plane.
-
equals(
Plane plane) → bool - Returns true if the given plane is deep equal with this plane.
-
fromCoplanarPoints(
Vector3 a, Vector3 b, Vector3 c) → Plane - Sets the values of the plane from three given coplanar points.
-
fromNormalAndCoplanarPoint(
Vector3 normal, Vector3 point) → Plane - Sets the values of the plane from the given normal vector and a coplanar point.
-
intersectPlane(
Plane plane, Vector3 result) → Vector3? - Performs a plane/plane intersection test and stores the intersection point to the given 3D vector. If no intersection is detected, null is returned.
-
intersectsPlane(
Plane plane) → bool - Returns true if the given plane intersects this plane.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
projectPoint(
Vector3 point, Vector3 result) → Vector3 - Projects the given point onto the plane. The result is written to the given vector.
-
set(
Vector3 normal, double constant) → Plane - Sets the given values to this plane.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited