# PlanePlanePlanePlane Struct

## 定義

``public value class Plane : IEquatable<System::Numerics::Plane>``
``public struct Plane : IEquatable<System.Numerics.Plane>``
``type Plane = struct``
``````Public Structure Plane
Implements IEquatable(Of Plane)``````

PlanePlanePlanePlane

## 建構函式

 Plane(Vector4) Plane(Vector4) Plane(Vector4) Plane(Vector4) 從指定的四維向量，建立 Plane 物件。Creates a Plane object from a specified four-dimensional vector. Plane(Vector3, Single) Plane(Vector3, Single) Plane(Vector3, Single) Plane(Vector3, Single) 從指定的法線以及原點到法線的距離，建立 Plane 物件。Creates a Plane object from a specified normal and the distance along the normal from the origin. Plane(Single, Single, Single, Single) Plane(Single, Single, Single, Single) Plane(Single, Single, Single, Single) Plane(Single, Single, Single, Single) 從法線的 X、Y 和 Z 元件以及原點到該法線的距離，建立 Plane 物件。Creates a Plane object from the X, Y, and Z components of its normal, and its distance from the origin on that normal.

## 欄位

 D D D D 從原點到法線的平面距離。The distance of the plane along its normal from the origin. Normal Normal Normal Normal 平面的法向量。The normal vector of the plane.

## 方法

 CreateFromVertices(Vector3, Vector3, Vector3) CreateFromVertices(Vector3, Vector3, Vector3) CreateFromVertices(Vector3, Vector3, Vector3) CreateFromVertices(Vector3, Vector3, Vector3) 建立 Plane 物件，其中包含三個指定的點。Creates a Plane object that contains three specified points. Dot(Plane, Vector4) Dot(Plane, Vector4) Dot(Plane, Vector4) Dot(Plane, Vector4) 計算平面和四維向量的內積。Calculates the dot product of a plane and a 4-dimensional vector. DotCoordinate(Plane, Vector3) DotCoordinate(Plane, Vector3) DotCoordinate(Plane, Vector3) DotCoordinate(Plane, Vector3) 傳回此平面的指定三維向量和法向量以及平面距離 (D) 值的內積。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) DotNormal(Plane, Vector3) DotNormal(Plane, Vector3) DotNormal(Plane, Vector3) 傳回此平面的指定三維向量和 Normal 值的內積。Returns the dot product of a specified three-dimensional vector and the Normal vector of this plane. Equals(Object) Equals(Object) Equals(Object) Equals(Object) 傳回值，這個值指出此執行個體和指定的物件是否相等。Returns a value that indicates whether this instance and a specified object are equal. Equals(Plane) Equals(Plane) Equals(Plane) Equals(Plane) 傳回值，這個值指出此執行個體和另一個平面物件是否相等。Returns a value that indicates whether this instance and another plane object are equal. GetHashCode() GetHashCode() GetHashCode() GetHashCode() 傳回這個執行個體的雜湊碼。Returns the hash code for this instance. Normalize(Plane) Normalize(Plane) Normalize(Plane) Normalize(Plane) 建立新 Plane 物件，其法向量是標準化的來源平面法向量。Creates a new Plane object whose normal vector is the source plane's normal vector normalized. ToString() ToString() ToString() ToString() 傳回這個平面物件的字串表示。Returns the string representation of this plane object. Transform(Plane, Matrix4x4) Transform(Plane, Matrix4x4) Transform(Plane, Matrix4x4) Transform(Plane, Matrix4x4) 將標準化的平面轉換成 4x4 矩陣。Transforms a normalized plane by a 4x4 matrix. Transform(Plane, Quaternion) Transform(Plane, Quaternion) Transform(Plane, Quaternion) Transform(Plane, Quaternion) 將標準化的平面轉換成四元數旋轉。Transforms a normalized plane by a Quaternion rotation.

## 運算子

 Equality(Plane, Plane) Equality(Plane, Plane) Equality(Plane, Plane) Equality(Plane, Plane) 傳回值，這個值表示兩個平面是否相等。Returns a value that indicates whether two planes are equal. Inequality(Plane, Plane) Inequality(Plane, Plane) Inequality(Plane, Plane) Inequality(Plane, Plane) 傳回值，這個值表示兩個平面是否不相等。Returns a value that indicates whether two planes are not equal.