|
Matrix4x4CreateWorld Method
|
Creates a world matrix with the specified parameters.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Matrix4x4 CreateWorld(
Vector3 position,
Vector3 forward,
Vector3 up
)
Public Shared Function CreateWorld (
position As Vector3,
forward As Vector3,
up As Vector3
) As Matrix4x4
public:
static Matrix4x4 CreateWorld(
Vector3 position,
Vector3 forward,
Vector3 up
)
static member CreateWorld :
position : Vector3 *
forward : Vector3 *
up : Vector3 -> Matrix4x4
Parameters
- position
- Type: Karamba.GeometryVector3
The position of the object; used in translation operations. - forward
- Type: Karamba.GeometryVector3
Forward direction of the object. - up
- Type: Karamba.GeometryVector3
Upward direction of the object; usually [0, 1, 0].
Return Value
Type:
Matrix4x4The world matrix.
See Also