pcb 4.1.1
An interactive printed circuit board layout editor.

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] 
)

Definition at line 206 of file trackball.c.

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

Referenced by button_press_cb(), ghid_trackball_constructor(), trackball(), and view_2d_toggled_cb().

Here is the call graph for this function:

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

Definition at line 302 of file trackball.c.

Referenced by ghid_port_rotate().

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

Definition at line 160 of file trackball.c.

References axis_to_quat(), opti_s::t, tb_project_to_sphere(), TRACKBALLSIZE, vcross(), vlength(), vset(), vsub(), and vzero().

Referenced by ghid_build_pcb_top_window(), and motion_notify_cb().

Here is the call graph for this function: