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.

  • normal The plane's normal vector.
  • d The plane's distance from the origin along its normal vector.

public Plane( Vector4 value )

Creates a object from a specified four-dimensional vector.

  • value A 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.

  • x The X component of the normal.
  • y The Y component of the normal.
  • z The Z component of the normal.
  • d The 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.

  • point1 The first point defining the plane.
  • point2 The second point defining the plane.
  • point3 The 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.

  • plane The plane.
  • value The 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.

  • plane The plane.
  • value The 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.

  • plane The plane.
  • value The 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.

  • other The 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.

  • obj The 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.

  • value The 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.

  • value1 The first plane to compare.
  • value2 The 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.

  • value1 The first plane to compare.
  • value2 The 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.

  • plane The normalized plane to transform.
  • matrix The 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.

  • plane The normalized plane to transform.
  • rotation The 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.