共用方式為


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

相機的前向量。

傳回

已建立的告示板。

適用於