Windows apps
Collapse the table of content
Expand the table of content

Matrix4x4::CreateBillboard Method

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

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
static Matrix4x4 CreateBillboard(
	Vector3 objectPosition, 
	Vector3 cameraPosition, 
	Vector3 cameraUpVector, 
	Vector3 cameraForwardVector
)

Parameters

objectPosition
Type: System.Numerics::Vector3

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

cameraPosition
Type: System.Numerics::Vector3

The position of the camera.

cameraUpVector
Type: System.Numerics::Vector3

The up vector of the camera.

cameraForwardVector
Type: System.Numerics::Vector3

The forward vector of the camera.

Return Value

Type: System.Numerics::Matrix4x4
The created billboard.
Show:
© 2017 Microsoft