Plane 结构

定义

表示三维空间中的一个平面。Represents a plane in three-dimensional space.

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)
继承
实现

注解

对于矩阵转换,Vector2Vector3Vector4 实例表示为行:矩阵 M 使用 vM 乘法转换矢量 v 。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.

构造函数

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.

Plane(Vector3, Single)

从指定法线以及从原点沿法线的距离创建一个 Plane 对象。Creates a Plane object from a specified normal and the distance along the normal from the origin.

Plane(Vector4)

从指定的四维向量创建一个 Plane 对象。Creates a Plane object from a specified four-dimensional vector.

字段

D

平面从原点沿其法线的距离。The distance of the plane along its normal from the origin.

Normal

平面的法向量。The normal vector of the plane.

方法

CreateFromVertices(Vector3, Vector3, Vector3)

创建一个 Plane 对象,其中包含三个指定的点。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)

返回指定的三维向量和此平面的法向量以及该平面的距离 (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)

返回指定的三维向量以及此平面的 Normal 向量的点积。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)

创建一个新的 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)

通过 4x4 矩阵转换规范化的平面。Transforms a normalized plane by a 4x4 matrix.

Transform(Plane, Quaternion)

通过四元数旋转转换规范化平面。Transforms a normalized plane by a Quaternion rotation.

运算符

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.

适用于