C-KIT-GUI-GTK 0.62
trackball.h File Reference

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])
 
int trackball_rot (float *quat, float oldx, float oldy, float newx, float newy, float width, float height, Pointf *cenPt)
 
int trackball_zoom (float *zoom, float oldx, float oldy, float newx, float newy, float width, float height)
 
int trackball_pan (Pointf *zoom, float oldx, float oldy, float newx, float newy, float width, float height)
 

Function Documentation

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] 
)
int trackball_rot ( float *  quat,
float  oldx,
float  oldy,
float  newx,
float  newy,
float  width,
float  height,
Pointf cenPt 
)
int trackball_zoom ( float *  zoom,
float  oldx,
float  oldy,
float  newx,
float  newy,
float  width,
float  height 
)
int trackball_pan ( Pointf zoom,
float  oldx,
float  oldy,
float  newx,
float  newy,
float  width,
float  height 
)