Op Englesch liesen Editéieren

Deelen iwwer


Plane Struct

Definition

Represents a plane in three-dimensional space.

C#
public struct Plane : IEquatable<System.Numerics.Plane>
Inheritance
Implements

Remarks

For matrix transformations, the Vector2, Vector3, and Vector4 instances are represented as rows: a vector v is transformed by a matrix M with vM multiplication.

Constructors

Plane(Single, Single, Single, Single)

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

Plane(Vector3, Single)

Creates a Plane object from a specified normal and the distance along the normal from the origin.

Plane(Vector4)

Creates a Plane object from a specified four-dimensional vector.

Fields

D

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

Normal

The normal vector of the plane.

Methods

CreateFromVertices(Vector3, Vector3, Vector3)

Creates a Plane object that contains three specified points.

Dot(Plane, Vector4)

Calculates the dot product of a plane and a 4-dimensional vector.

DotCoordinate(Plane, Vector3)

Returns the dot product of a specified three-dimensional vector and the normal vector of this plane plus the distance (D) value of the plane.

DotNormal(Plane, Vector3)

Returns the dot product of a specified three-dimensional vector and the Normal vector of this plane.

Equals(Object)

Returns a value that indicates whether this instance and a specified object are equal.

Equals(Plane)

Returns a value that indicates whether this instance and another plane object are equal.

GetHashCode()

Returns the hash code for this instance.

Normalize(Plane)

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

ToString()

Returns the string representation of this plane object.

Transform(Plane, Matrix4x4)

Transforms a normalized plane by a 4x4 matrix.

Transform(Plane, Quaternion)

Transforms a normalized plane by a Quaternion rotation.

Operators

Equality(Plane, Plane)

Returns a value that indicates whether two planes are equal.

Inequality(Plane, Plane)

Returns a value that indicates whether two planes are not equal.

Extension Methods

AsVector4(Plane)

Reinterprets a Plane as a new Vector4.

Applies to

Produkt Versiounen
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0