Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Matrix4x4.CreateBillboard(Vector3, Vector3, Vector3, Vector3) Method

Definition

Namespace:
System.Numerics
Assemblies:
System.Numerics.dll, System.Numerics.Vectors.dll
Assemblies:
netstandard.dll, System.Numerics.Vectors.dll
Assembly:
System.Numerics.Vectors.dll
Assembly:
System.Numerics.dll
Assembly:
netstandard.dll
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Creates a spherical billboard that rotates around a specified object position.

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

Parameters

objectPosition
Vector3

The position of the object that the billboard will rotate around.

cameraPosition
Vector3

The position of the camera.

cameraUpVector
Vector3

The up vector of the camera.

cameraForwardVector
Vector3

The forward vector of the camera.

Returns

The created billboard.

Applies to


Feedback

Was this page helpful?