|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.phys2d.raw.shapes.AbstractShape net.phys2d.raw.shapes.Box
A simple box in the engine - defined by a width and height
Field Summary |
Fields inherited from class net.phys2d.raw.shapes.AbstractShape |
bounds |
Constructor Summary | |
Box(float width,
float height)
Create a box in the simulation |
Method Summary | |
Vector2f[] |
getPoints(ROVector2f pos,
float rotation)
Get the current positon of a set of points |
ROVector2f |
getSize()
Get the size of this box |
float |
getSurfaceFactor()
Some factor based on the edges length of the shape |
Methods inherited from class net.phys2d.raw.shapes.AbstractShape |
getBounds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.phys2d.raw.shapes.Shape |
getBounds |
Constructor Detail |
public Box(float width, float height)
width
- The width of a boxheight
- The hieght of the boxMethod Detail |
public ROVector2f getSize()
public float getSurfaceFactor()
Shape
getSurfaceFactor
in interface Shape
Shape.getSurfaceFactor()
public Vector2f[] getPoints(ROVector2f pos, float rotation)
pos
- The centre of the boxrotation
- The rotation of the box
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |