Click or drag to resize

Matrix4x4CreateLookAt Method

Creates a view matrix.

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Matrix4x4 CreateLookAt(
	Vector3 cameraPosition,
	Vector3 cameraTarget,
	Vector3 cameraUpVector
)

Parameters

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

Return Value

Type: Matrix4x4
The view matrix.
See Also