Plane 构造函数
定义
重载
| Plane(Vector4) |
从指定的四维向量创建一个 Plane 对象。Creates a Plane object from a specified four-dimensional vector. |
| 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) |
从其法线的 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(Vector4)
public:
Plane(System::Numerics::Vector4 value);
public Plane (System.Numerics.Vector4 value);
new System.Numerics.Plane : System.Numerics.Vector4 -> System.Numerics.Plane
Public Sub New (value As Vector4)
参数
- value
- Vector4
一个向量,其前三个元素描述法向量,其 W 定义从原点沿该法线的距离。A vector whose first three elements describe the normal vector, and whose W defines the distance along that normal from the origin.
适用于
Plane(Vector3, Single)
public:
Plane(System::Numerics::Vector3 normal, float d);
public Plane (System.Numerics.Vector3 normal, float d);
new System.Numerics.Plane : System.Numerics.Vector3 * single -> System.Numerics.Plane
Public Sub New (normal As Vector3, d As Single)
参数
- normal
- Vector3
平面的法向量。The plane's normal vector.
- d
- Single
平面从原点沿其法向量的距离。The plane's distance from the origin along its normal vector.
适用于
Plane(Single, Single, Single, Single)
public:
Plane(float x, float y, float z, float d);
public Plane (float x, float y, float z, float d);
new System.Numerics.Plane : single * single * single * single -> System.Numerics.Plane
Public Sub New (x As Single, y As Single, z As Single, d As Single)
参数
- x
- Single
法线的 X 分量。The X component of the normal.
- y
- Single
法线的 Y 分量。The Y component of the normal.
- z
- Single
法线的 Z 分量。The Z component of the normal.
- d
- Single
平面从原点沿其法线的距离。The distance of the plane along its normal from the origin.