|
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
)
Public Shared Function CreateLookAt (
cameraPosition As Vector3,
cameraTarget As Vector3,
cameraUpVector As Vector3
) As Matrix4x4
public:
static Matrix4x4 CreateLookAt(
Vector3 cameraPosition,
Vector3 cameraTarget,
Vector3 cameraUpVector
)
static member CreateLookAt :
cameraPosition : Vector3 *
cameraTarget : Vector3 *
cameraUpVector : Vector3 -> Matrix4x4
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:
Matrix4x4The view matrix.
See Also