Functions | |
void | Pan_Camera (double theta, double phi) |
void | QPan_Camera (const char *segment, double theta, double phi) |
void Pan_Camera | ( | double | theta, | |
double | phi | |||
) |
Sweeps the camera across its current scene.
theta | - The distance, in degrees, that the camera should sweep to the right. Can be negative. | |
phi | - The distance, in degrees, that the camera should tilt upwards. Can be negative. |
Pan_Camera() gives the effect of turning in place, with your view sweeping across the scene in front of you. A positive q rotates the camera to its right (the scene appears to move to the left), and a negative q rotates the camera to its left (the scene appears to move to the right.) Similarly, a positive f tilts the camera upwards and a negative f tilts it downwards.
If nonzero values are given for both q and f, first the horizontal Pan is performed, then the vertical. A full Pan of 360 degrees leaves you back where you started, of course. The axis of rotation is always the current camera Up Vector. If you'd like to "Pan" around an arbitrary axis, call Roll_Camera() , then Pan_Camera() , and then Roll_Camera() back again.
void QPan_Camera | ( | const char * | segment, | |
double | theta, | |||
double | phi | |||
) |
Similar to Pan_Camera(), but operates on a given segment rather than the currently open one.
segment | - Name of the segment(s) to be changed. | |
theta | - The distance, in degrees, that the camera should sweep to the right. Can be negative. | |
phi | - The distance, in degrees, that the camera should tilt upwards. Can be negative. |