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

Matrix4x4::CreateConstrainedBillboard Method

Creates a cylindrical billboard that rotates around a specified axis.

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

public:
static Matrix4x4 CreateConstrainedBillboard(
	Vector3 objectPosition, 
	Vector3 cameraPosition, 
	Vector3 rotateAxis, 
	Vector3 cameraForwardVector, 
	Vector3 objectForwardVector
)

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.

rotateAxis
Type: System.Numerics::Vector3

The axis to rotate the billboard around.

cameraForwardVector
Type: System.Numerics::Vector3

The forward vector of the camera.

objectForwardVector
Type: System.Numerics::Vector3

The forward vector of the object.

Return Value

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