MTX_LookAt

C Specification

#include <nitro/fx/fx_mtx43.h>
void MTX_LookAt( const VecFx32 * camPos, const VecFx32 * camUp, const VecFx32 * target, MtxFx43 * mtx );

Arguments

camPos Camera Position Vector Pointer
camUp Camera Up Vector Pointer
target Camera Focal Point Pointer
mtx The pointer to a 4x3 matrix.

Return Values

None.

Description

Sets the camera matrix to matrix *mtx.*There is no need for *camUp to be normalized. The matrix that is set is as shown below.

See Also

G3_LookAt

Revision History

06/21/2004 Initial version