|
Public Member Functions |
| | Arcball () |
| | Arcball (mat4 *mtx) |
| | Arcball (const vec2 ¢er, float radius) |
| void | set_damping (float d) |
| void | idle () |
| void | mouse_down (int x, int y) |
| void | mouse_up () |
| void | mouse_motion (int x, int y, int shift, int ctrl, int alt) |
| void | mouse_motion (int x, int y) |
| void | set_constraints (bool constrain_x, bool constrain_y) |
| void | set_params (const vec2 ¢er, float radius) |
| void | reset_mouse () |
| void | init () |
| vec3 | constrain_vector (const vec3 &vector, const vec3 &axis) |
| vec3 | mouse_to_sphere (const vec2 &p) |
Public Attributes |
| int | is_mouse_down |
| int | is_spinning |
| quat | q_now |
| quat | q_down |
| quat | q_drag |
| quat | q_increment |
| vec2 | down_pt |
| mat4 | rot |
| mat4 | rot_increment |
| mat4 * | rot_ptr |
| bool | constraint_x |
| bool | constraint_y |
| vec2 | center |
| float | radius |
| float | damp_factor |
| int | zero_increment |