Matrix4x4CreateLookAt Method

Creates a view matrix.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static Matrix4x4 CreateLookAt(
	Vector3 cameraPosition,
	Vector3 cameraTarget,
	Vector3 cameraUpVector
)

Parameters

cameraPosition  Vector3
The position of the camera.
cameraTarget  Vector3
The target towards which the camera is pointing.
cameraUpVector  Vector3
The direction that is "up" from the camera's point of view.

Return Value

Matrix4x4
The view matrix.

See Also