MoveBy

void MoveBy(
Vec2D value )

Moves the position part of the Placement by the specified amount.

Examples

Placement myPlacement( Vec2D250.0100.0 ), 0.5 * AL_PI );

// Move myPlacement 20 pixels right and 10 pixels down //
myPlacement.MoveByVec2D20.010.0 ));


Other functions of the class Placement
MoveBy
Moves the Placement
RotateBy
Rotates the Placement
StretchBy
Stretches the Position
GetDistance
Returns the distance between this Placement and an another one
SetPosition
Sets the position value of the Placement
GetPosition
Returns the position value of the Placement
SetRotation
Sets the rotation angle of the Placement
GetRotation
Returns the rotation angle of the Placement
SetStretch
Sets the stretching factor of the Placement
GetStretch
Returns the stretching factor of the Placement


Questions about MoveBy? Click here.