Merge pull request #13 from rodri042/position-signed-ints
Position getters now return signed ints
This commit is contained in:
commit
aef56ed72c
|
@ -96,8 +96,8 @@ public:
|
||||||
GBAVector getPosAsVector() { return GBAVector(getPos()); }
|
GBAVector getPosAsVector() { return GBAVector(getPos()); }
|
||||||
VECTOR getCenter() { return { x + w / 2, y + h / 2 }; }
|
VECTOR getCenter() { return { x + w / 2, y + h / 2 }; }
|
||||||
VECTOR getVelocity() { return { dx, dy}; }
|
VECTOR getVelocity() { return { dx, dy}; }
|
||||||
u32 getX() { return x; }
|
int getX() { return x; }
|
||||||
u32 getY() { return y; }
|
int getY() { return y; }
|
||||||
u32 getDx() { return dx; }
|
u32 getDx() { return dx; }
|
||||||
u32 getDy() { return dy; }
|
u32 getDy() { return dy; }
|
||||||
u32 getWidth() { return w; }
|
u32 getWidth() { return w; }
|
||||||
|
|
Loading…
Reference in New Issue