Placement Stores the position, rotation and stretch of an object.
Examples // Create a new placement for an object with the position x = 200.0, y = 100.0 //
Placement myPlacement( Vec2D( 200.0, 100.0 )); // Do the same as above, but also rotate the object 90 decrees counter clockwise // Placement myPlacement2( Vec2D( 200.0, 100.0 ), 0.5 * AL_PI ); // Do the same as above, but also stretch the object to double of its original size // Placement myPlacement3( Vec2D( 200.0, 100.0 ), 0.5 * AL_PI, 2.0 ); Member functions
Questions about Placement? Click here. |