Plane
Public / Constructors
FromEquation
Creates a new instance of Plane.
The plane is computed using the following formula:
a*x + b*y + c*z + d = 0
FromHessian
Creates a new instance of Plane.
The plane is defined by the Hessian Normal Form:
n * X = -p
FromPoints
Creates a new instance of Plane.
The plane will contain the given points, having a normal vector that points in the same direction as (b-a) x (c-a)
.
Public / Methods
DistanceToPoint
2 overloads
Computes the distance of the given point to the plane.
Computes the distance of the given point to the plane.
Offset
Applies a distance offset to this plane.
The plane offset is defined as follows:
plane.DistanceToPoint(point) = plane.Offset(amount).DistanceToPoint(point) + amount
Public / Attributes
Coefficients
Returns the plane coefficients.
This value refers to the general plane equation:
a*x + b*y + c*z + d = 0
Distance
Distance of the plane to the coordinate origin.
This value refers to the Hessian Normal Form:
n * X = -p
where n
is the unit-length normal vector (see Normal) and p
is the distance of the plane from the origin.
Normal
Unit-length plane normal vector.
This value refers to the Hessian Normal Form:
n * X = -p
where n
is the unit-length normal vector and p
is the distance of the plane from the origin (see Distance).