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

Matrix4x4::CreateWorld Method

Creates a world matrix with the specified parameters.

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

public:
static Matrix4x4 CreateWorld(
	Vector3 position, 
	Vector3 forward, 
	Vector3 up
)

Parameters

position
Type: System.Numerics::Vector3

The position of the object.

forward
Type: System.Numerics::Vector3

The forward direction of the object.

up
Type: System.Numerics::Vector3

The upward direction of the object. Its value is usually [0, 1, 0].

Return Value

Type: System.Numerics::Matrix4x4
The world matrix.

position is used in translation operations.

Show:
© 2017 Microsoft