Arkanoid Remake
1.0
|
A box-shaped object. More...
#include <BoxObj.h>
Public Member Functions | |
BoxObj (double x=0.0, double y=0.0) | |
Default constructor with optional intialization list. | |
BoxObj (const BoxObj &obj) | |
VecXy & | Pos () |
Position. | |
const VecXy & | Pos () const |
Position (read only) | |
VecXy & | Origin () |
Origin (min x,y corner) | |
const VecXy & | Origin () const |
Origin (min x,y corner, read-only) | |
VecXy & | Size () |
Size. | |
const VecXy & | Size () const |
Size (read only) | |
const double | MinX () const |
Lower X value. | |
const double | MinY () const |
Lower Y value. | |
const double | MaxX () const |
Upper X value. | |
const double | MaxY () const |
Upper X value. | |
const VecXy | HSize () const |
Half size. | |
const double | HSizeX () const |
Half size along X axis. | |
const double | HSizeY () const |
Half size along Y axis. | |
Protected Attributes | |
VecXy | mPos |
VecXy | mSize |
VecXy | mOrigin |
A box-shaped object.
A box-shaped object with position and size, using VecXy struct to store 2-dimensional data.