Matrix4x4.CreateBillboard(Vector3, Vector3, Vector3, Vector3) 方法

定义

创建围绕指定对象位置旋转的球状宣传位置。

public:
 static System::Numerics::Matrix4x4 CreateBillboard(System::Numerics::Vector3 objectPosition, System::Numerics::Vector3 cameraPosition, System::Numerics::Vector3 cameraUpVector, System::Numerics::Vector3 cameraForwardVector);
public static System.Numerics.Matrix4x4 CreateBillboard (System.Numerics.Vector3 objectPosition, System.Numerics.Vector3 cameraPosition, System.Numerics.Vector3 cameraUpVector, System.Numerics.Vector3 cameraForwardVector);
static member CreateBillboard : System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 -> System.Numerics.Matrix4x4
Public Shared Function CreateBillboard (objectPosition As Vector3, cameraPosition As Vector3, cameraUpVector As Vector3, cameraForwardVector As Vector3) As Matrix4x4

参数

objectPosition
Vector3

宣传位置将围绕其旋转的对象的位置。

cameraPosition
Vector3

照相机的位置。

cameraUpVector
Vector3

照相机的向上向量。

cameraForwardVector
Vector3

照相机的向前向量。

返回

创建的宣传位置。

适用于