struct Plane
in global :: System . Numerics
Represents a plane in three-dimensional space.
public Plane( Vector3 normal, float d )
Creates a object from a specified normal and the distance along the normal from the origin.
normalThe plane's normal vector.dThe plane's distance from the origin along its normal vector.
public Plane( Vector4 value )
Creates a object from a specified four-dimensional vector.
valueA vector whose first three elements describe the normal vector, and whose defines the distance along that normal from the origin.
public Plane( float x, float y, float z, float d )
Creates a object from the X, Y, and Z components of its normal, and its distance from the origin on that normal.
xThe X component of the normal.yThe Y component of the normal.zThe Z component of the normal.dThe distance of the plane along its normal from the origin.
public static Plane CreateFromVertices( Vector3 point1, Vector3 point2, Vector3 point3 )
Creates a object that contains three specified points.
point1The first point defining the plane.point2The second point defining the plane.point3The third point defining the plane.- Returns The plane containing the three points.
public float D
The distance of the plane along its normal from the origin.
public static float Dot( Plane plane, Vector4 value )
Calculates the dot product of a plane and a 4-dimensional vector.
planeThe plane.valueThe four-dimensional vector.- Returns The dot product.
public static float DotCoordinate( Plane plane, Vector3 value )
Returns the dot product of a specified three-dimensional vector and the normal vector of this plane plus the distance () value of the plane.
planeThe plane.valueThe 3-dimensional vector.- Returns The dot product.
public static float DotNormal( Plane plane, Vector3 value )
Returns the dot product of a specified three-dimensional vector and the vector of this plane.
planeThe plane.valueThe three-dimensional vector.- Returns The dot product.
public bool Equals( Plane other )
Returns a value that indicates whether this instance and another plane object are equal.
otherThe other plane.- Returns if the two planes are equal; otherwise, .
public bool Equals( object obj )
Returns a value that indicates whether this instance and a specified object are equal.
objThe object to compare with the current instance.- Returns if the current instance and are equal; otherwise, . If is , the method returns .
public Vector3 Normal
The normal vector of the plane.
public static Plane Normalize( Plane value )
Creates a new object whose normal vector is the source plane's normal vector normalized.
valueThe source plane.- Returns The normalized plane.
public static bool op_Equality( Plane value1, Plane value2 )
Returns a value that indicates whether two planes are equal.
value1The first plane to compare.value2The second plane to compare.- Returns if and are equal; otherwise, .
public static bool op_Inequality( Plane value1, Plane value2 )
Returns a value that indicates whether two planes are not equal.
value1The first plane to compare.value2The second plane to compare.- Returns if and are not equal; otherwise, .
public static Plane Transform( Plane plane, Matrix4x4 matrix )
Transforms a normalized plane by a 4x4 matrix.
planeThe normalized plane to transform.matrixThe transformation matrix to apply to .- Returns The transformed plane.
public static Plane Transform( Plane plane, Quaternion rotation )
Transforms a normalized plane by a Quaternion rotation.
planeThe normalized plane to transform.rotationThe Quaternion rotation to apply to the plane.- Returns A new plane that results from applying the Quaternion rotation.
public int GetHashCode( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.