|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.phys2d.raw.shapes.AABox
An axis oriented used for shape bounds
Constructor Summary | |
AABox(float width,
float height)
Create a new bounding box |
|
AABox(float offsetx,
float offsety,
float width,
float height)
Create a new AABox |
Method Summary | |
float |
getHeight()
Get the height of the box |
float |
getOffsetX()
Get the x offset to the body's position of this bounds |
float |
getOffsetY()
Get the y offset to the body's position of this bounds |
float |
getWidth()
Get the width of the box |
java.lang.String |
toString()
|
boolean |
touches(float x,
float y,
AABox other,
float otherx,
float othery)
Check if this box touches another |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AABox(float width, float height)
width
- The width of the boxheight
- The hieght of the boxpublic AABox(float offsetx, float offsety, float width, float height)
offsetx
- The x offset to the body's positionoffsety
- The y offset to the body's positionwidth
- The width of the boxheight
- The hieght of the boxMethod Detail |
public float getWidth()
public float getHeight()
public float getOffsetX()
public float getOffsetY()
public boolean touches(float x, float y, AABox other, float otherx, float othery)
x
- The x position of this boxy
- The y position of this boxother
- The other box to check againstotherx
- The other box's x positionothery
- The other box's y position
public java.lang.String toString()
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |