49 vect.
x = 2.0*
x/view -> pixels[0] - 1.0;
50 y = view -> pixels[1] -
y;
51 vect.
y = 2.0*
y/view -> pixels[1] - 1.0;
52 float norm_arc = vect.
x*vect.
x + vect.
y*vect.
y;
59 vect.
z = sqrt(1.0 - norm_arc);
61 return v3_norm (vect);
77 if (v3_length(rot_axis) > 0.0)
80 vec4_t quat = axis_to_quat (rot_axis, rot_angle);
vec3_t get_arc_ball_vector(glwin *view, int x, int y)
vec4_t old_rotation_quaternion
void arc_ball_rotation(glwin *view, int x, int y)
Perform arcball rotation.
void rotate_quat(project *this_proj, vec4_t q, int status, int axis)
rotate using quaternion
Global variable declarations Global convenience function declarations Global data structure defin...
project * get_project_by_id(int p)
get project pointer using id number
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...