Functions | |
void | Translate_Object (double x, double y, double z) |
void | DTranslate_Object (double x, double y, double z) |
void Translate_Object | ( | double | x, |
double | y, | ||
double | z | ||
) |
Moves objects about within the user data space.
x | - Distance to move along the X -axis. Positive values are towards positive X, of course. |
y | - Distance to move along the Y -axis. |
z | - Likewise, along the Z -axis. |
Translate_Object() is a modelling transformation---it should be thought of as changing the object you have drawn. For changing your point of view, a better routine is Dolly_Camera() .
The mathematical transform required is
void DTranslate_Object | ( | double | x, |
double | y, | ||
double | z | ||
) |
Similar to Translate_Object(), but operates on double-precision data.
x | - Distance to move along the X -axis. Positive values are towards positive X, of course. |
y | - Distance to move along the Y -axis. |
z | - Likewise, along the Z -axis. |