NPlane Type
An immutable, unparametrized plane defined by a point and a normal vector. As opposed to the PPlane, this plane is not parametrized in X, Y, and Z directions. Note: Never use the struct default constructor NPlane() as it will create an invalid zero plane. Use NPlane.create or NPlane.createUnchecked instead.
Record fields
| Record Field |
Description
|
The unitized normal of the plane.
|
|
The center point of the plane.
|
Constructors
| Constructor |
Description
|
|
Instance members
| Instance member |
Description
|
|
Returns the angle to a Line3D in degrees, ignoring the normal's orientation. So 0.0 if the line is parallel to the plane, and 90 degrees if the line is perpendicular to the plane.
|
|
Returns the angle to another plane in degrees, ignoring the normal's orientation. So 0.0 if the planes are parallel, and 90 degrees if the planes are perpendicular to each other.
|
|
Returns the angle to 3D unit-vector in degrees, ignoring the plane's orientation. So 0.0 if the vector is parallel to the plane, and 90 degrees if the vector is perpendicular to the plane.
|
|
Returns the angle to 3D vector in degrees, ignoring the plane's orientation. So 0.0 if the vector is parallel to the plane, and 90 degrees if the vector is perpendicular to the plane.
|
Full Usage:
this.AsFSharpCode
Returns: string
|
Format NPlane into an F# code string that can be used to recreate the plane.
|
Full Usage:
this.AsString
Returns: string
|
Format NPlane into string with nicely formatted floating point numbers. But without type name as in pl.ToString()
|
|
|
|
Returns signed distance of point to plane, also indicating on which side it is.
|
|
Returns a new plane with the same Origin but flipped Normal.
|
Full Usage:
this.IsCoincidentTo
Parameters:
NPlane
?distanceTolerance : float
?minCosine : MeasureProduct<cosine, MeasureOne>
Returns: bool
Modifiers: inline |
Checks if two planes are coincident within the distance tolerance (1e-6 by default). This means that their normals are parallel within the angle tolerance and the distance of the second origin to the first plane is less than the distance tolerance. The default angle tolerance is 0.25 degrees. This tolerance can be customized by an optional minimum cosine value. See Euclid.Cosine module.
|
|
Static members
| Static member |
Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Offsets the plane by the given distance in the direction determined by a point. If the point is on the positive side of the plane (same direction as normal), offsets in the normal direction. If the point is on the negative side, offsets in the opposite direction.
|
|
|
|
|
|
|
|
Gets the Plane at world origin with normal in world Z direction.
|
Euclid