guLookAt.3p 926 Bytes
.TH guLookAt 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
guLookAt, guLookAtF \- computes a 'lookat' viewing matrix.
.SH C SPECIFICATION
.nf
\f3#include "gu.h"

void guLookAt(Mtx m, float xEye, float yEye, float zEye,
		float xAt,  float yAt,  float zAt,
		float xUp,  float yUp,  float zUp )

void guLookAtF(float m[4][4], float xEye, float yEye, float zEye,
		float xAt,  float yAt,  float zAt,
		float xUp,  float yUp,  float zUp )

\fP
.fi
.SH PARAMETERS
.TP 10
.I m
resulting 4x4 viewing matrix.
.TP
.I xEye, yEye, zEye
eye position.
.TP
.I xAt, yAt, zAt
center of interest in the direction we are looking.
.TP
.I xUp, yUp, zUp
up direction vector.
.SH DESCRIPTION
.I guLookAt
Returns a fixed-point 4x4 matrix
.B m. 
For a detailed description of the 
fixed-point matrix format, see
.I gSPMatrix (3P).
.PP
.I guLookAtF
Returns a floating-point 4x4 matrix
.B m. 

.SH SEE ALSO
.IR gSPMatrix (3P)
.IR gluLookAt (3G)