<PackageReference Include="System.Numerics.Vectors" Version="4.3.0" />

System.Numerics.Plane

public struct Plane : IEquatable<Plane>
A structure encapsulating a 3D Plane
public float D

The distance of the Plane along its normal from the origin.

public Vector3 Normal

The normal vector of the Plane.

public Plane(float x, float y, float z, float d)

Constructs a Plane from the X, Y, and Z components of its normal, and its distance from the origin on that normal.

public Plane(Vector3 normal, float d)

Constructs a Plane from the given normal and distance along the normal from the origin.

public Plane(Vector4 value)

Constructs a Plane from the given Vector4.

public static Plane CreateFromVertices(Vector3 point1, Vector3 point2, Vector3 point3)

Creates a Plane that contains the three given points.

public static float Dot(Plane plane, Vector4 value)

Calculates the dot product of a Plane and Vector4.

public static float DotCoordinate(Plane plane, Vector3 value)

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 DotNormal(Plane plane, Vector3 value)

Returns the dot product of a specified Vector3 and the Normal vector of this Plane.

public static Plane Normalize(Plane value)

Creates a new Plane whose normal vector is the source Plane's normal vector normalized.

public static bool op_Equality(Plane value1, Plane value2)

Returns a boolean indicating whether the two given Planes are equal.

public static bool op_Inequality(Plane value1, Plane value2)

Returns a boolean indicating whether the two given Planes are not equal.

public static Plane Transform(Plane plane, Matrix4x4 matrix)

Transforms a normalized Plane by a Matrix.

public static Plane Transform(Plane plane, Quaternion rotation)

Transforms a normalized Plane by a Quaternion rotation.

public bool Equals(Plane other)

Returns a boolean indicating whether the given Plane is equal to this Plane instance.