Functions | |
void | Rotate_Texture_Offaxis (double x, double y, double z, double theta) |
void Rotate_Texture_Offaxis | ( | double | x, | |
double | y, | |||
double | z, | |||
double | theta | |||
) |
Rotates the represented texture coordinates (vertex parameters) 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 "texture" 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.