Brief Index      Full Index      I.M. Reference

Translate_Object


Functions

void Translate_Object (double x, double y, double z)
void QTranslate_Object (const char *segment, double x, double y, double z)

Function Documentation

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

trnslte.gif

NOTES

RESTRICTIONS

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

void QTranslate_Object ( const char *  segment,
double  x,
double  y,
double  z 
)

Similar to Translate_Object(), but operates on a given segment rather than the currently open one.

Parameters:
segment - Name of the segment(s) to be changed.
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

No additional details. See Translate_Object()

Main Index
Brief Index      Full Index      I.M. Functions