papyrus logo

trackball.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void trackball (float q[4], float p1x, float p1y, float p2x, float p2y)
void add_quats (float *q1, float *q2, float *dest)
void build_rotmatrix (float m[4][4], float q[4])
void axis_to_quat (float a[3], float phi, float q[4])


Function Documentation

void add_quats ( float *  q1,
float *  q2,
float *  dest 
)

void axis_to_quat ( float  a[3],
float  phi,
float  q[4] 
)

References vcopy(), vnormal(), and vscale().

Referenced by trackball().

void build_rotmatrix ( float  m[4][4],
float  q[4] 
)

void trackball ( float  q[4],
float  p1x,
float  p1y,
float  p2x,
float  p2y 
)


Generated on Wed Mar 18 12:34:48 2009 for papyrus by doxygen 1.5.7.1