net.phys2d.raw.shapes
Class AbstractShape

java.lang.Object
  extended bynet.phys2d.raw.shapes.AbstractShape
All Implemented Interfaces:
Shape
Direct Known Subclasses:
Box, Circle, Line, Polygon

public abstract class AbstractShape
extends java.lang.Object
implements Shape

Super class of generic shapes in the engine


Field Summary
protected  AABox bounds
          The circular bounds that fit the shape based on the position of the body
 
Constructor Summary
protected AbstractShape()
          Construct a new shape as subclas swhich will specified it's own bounds
  AbstractShape(AABox bounds)
          Create a shape
 
Method Summary
 AABox getBounds()
          Get the box bounds of the shape
 
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
getSurfaceFactor
 

Field Detail

bounds

protected AABox bounds
The circular bounds that fit the shape based on the position of the body

Constructor Detail

AbstractShape

protected AbstractShape()
Construct a new shape as subclas swhich will specified it's own bounds


AbstractShape

public AbstractShape(AABox bounds)
Create a shape

Parameters:
bounds - The bounds of the shape
Method Detail

getBounds

public AABox getBounds()
Description copied from interface: Shape
Get the box bounds of the shape

Specified by:
getBounds in interface Shape
Returns:
The bounds of the shape
See Also:
Shape.getBounds()