Struct Plane
A structure encapsulating a 3D Plane
Inherited Members
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct Plane : ITransformable3D<Plane>, IEquatable<Plane>
Constructors
View SourcePlane(Single, Single, Single, Single)
public Plane(float x, float y, float z, float d)
Plane((Vector3 normal, Single d))
public Plane((Vector3 normal, float d) tuple)
Plane(Vector3, Single)
public Plane(Vector3 normal, float d)
Plane(Vector4)
public Plane(Vector4 v)
Fields
View SourceD
[DataMember]
public readonly float D
MaxValue
public static Plane MaxValue
MinValue
public static Plane MinValue
Normal
[DataMember]
public readonly Vector3 Normal
Zero
public static Plane Zero
Methods
View SourceAlmostEquals(Plane, Single)
public readonly bool AlmostEquals(Plane x, float tolerance = 1E-07F)
ClassifyPoint(Vector3)
Returns a value less than zero if the points is below the plane, above zero if above the plane, or zero if coplanar
public readonly float ClassifyPoint(Vector3 point)
Create((Vector3 normal, Single d))
public static Plane Create((Vector3 normal, float d) tuple)
Create(Vector3, Single)
public static Plane Create(Vector3 normal, float d)
CreateFromNormalAndPoint(Vector3, Vector3)
Creates a Plane with the given normal that contains the point
public static Plane CreateFromNormalAndPoint(Vector3 normal, Vector3 point)
CreateFromVertices(Vector3, Vector3, Vector3)
Creates a Plane that contains the three given points.
public static Plane CreateFromVertices(Vector3 point1, Vector3 point2, Vector3 point3)
Deconstruct(out Vector3, out Single)
public readonly void Deconstruct(out Vector3 normal, out float d)
Dot(Plane, Vector4)
Calculates the dot product of a Plane and Vector4.
public static float Dot(Plane plane, Vector4 value)
Dot(Vector4)
Calculates the dot product of a Plane and Vector4.
public readonly float Dot(Vector4 value)
DotCoordinate(Plane, Vector3)
Returns the dot product of a specified Vector3 and the normal vector of this Plane plus the distance (D) value of the Plane.
public static float DotCoordinate(Plane plane, Vector3 value)
DotNormal(Plane, Vector3)
Returns the dot product of a specified Vector3 and the Normal vector of this Plane.
public static float DotNormal(Plane plane, Vector3 value)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
Equals(Plane)
public readonly bool Equals(Plane x)
GetHashCode()
public override readonly int GetHashCode()
Overrides
Normalize(Plane)
Creates a new Plane whose normal vector is the source Plane's normal vector normalized.
public static Plane Normalize(Plane value)
ProjectPointOntoPlane(Plane, Vector3)
Projects a point onto the plane
public static Vector3 ProjectPointOntoPlane(Plane plane, Vector3 point)
SetD(Single)
public readonly Plane SetD(float x)
SetNormal(Vector3)
public readonly Plane SetNormal(Vector3 x)
ToString()
public override readonly string ToString()
Overrides
ToVector4()
Returns a Vector4 representation of the Plane
public readonly Vector4 ToVector4()
Transform(Matrix4x4)
Transforms a normalized Plane by a Matrix.
public readonly Plane Transform(Matrix4x4 matrix)
Transform(Quaternion)
Transforms a normalized Plane by a Quaternion rotation.
public readonly Plane Transform(Quaternion rotation)
Operators
View SourceEquality(Plane, Plane)
public static bool operator ==(Plane x0, Plane x1)
Implicit((Vector3 normal, Single d) to Plane)
public static implicit operator Plane((Vector3 normal, float d) tuple)
Implicit(Plane to (Vector3 normal, Single d))
public static implicit operator (Vector3 normal, float d)(Plane self)
Inequality(Plane, Plane)
public static bool operator !=(Plane x0, Plane x1)