Functions | |
void | Rotate_Object_Offaxis (double x, double y, double z, double theta) |
void | QRotate_Object_Offaxis (const char *segment, double x, double y, double z, double theta) |
void Rotate_Object_Offaxis | ( | double | x, | |
double | y, | |||
double | z, | |||
double | theta | |||
) |
Moves the represented object about an arbitrary axis.
x | - Vector defining the axis of rotation. Need not be normalized. | |
y | - | |
z | - | |
theta | - Angle, in degrees, to rotate about the axis. |
Most rotations in HOOPS (the exception is Orbit_Camera() ), no matter whether "camera" or "object", are performed using a left-hand rule. A positive rotation is represented by the direction curved fingers of the left hand are pointing when the thumb points in the positive direction along the axis in question, i.e., counter-clockwise. A negative rotation angle goes the other way. This definition can be reversed with the "Handedness" attribute.
void QRotate_Object_Offaxis | ( | const char * | segment, | |
double | x, | |||
double | y, | |||
double | z, | |||
double | theta | |||
) |
Similar to Rotate_Object_Offaxis(), but operates on a given segment rather than the currently open one.
segment | - Name of the segment(s) to be changed. | |
x | - Vector defining the axis of rotation. Need not be normalized. | |
y | - | |
z | - | |
theta | - Angle, in degrees, to rotate about the axis. |