Translate_Object

Functions

void DTranslate_Object (double x, double y, double z)
 Similar to Translate_Object(), but operates on double-precision data. More...
 
void Translate_Object (double x, double y, double z)
 Moves objects about within the user data space. More...
 

Detailed Description

Function Documentation

◆ DTranslate_Object()

void DTranslate_Object ( double  x,
double  y,
double  z 
)

Similar to Translate_Object(), but operates on double-precision data.

Parameters
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()

void Translate_Object ( double  x,
double  y,
double  z 
)

Moves objects about within the user data space.

Parameters
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.

DETAILS

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

NOTES

RESTRICTIONS

See also
Scale_Object, Rotate_Object, Append_Modelling_Matrix, Set_Modelling_Matrix, Dolly_Camera, Pan_Camera.