com.brackeen.javagamebook.math3D
Class PolygonGroupBounds

java.lang.Object
  extended bycom.brackeen.javagamebook.math3D.PolygonGroupBounds

public class PolygonGroupBounds
extends java.lang.Object

The PolygonGroupBounds represents a cylinder bounds around a PolygonGroup that can be used for collision detection.


Constructor Summary
PolygonGroupBounds()
          Creates a new PolygonGroupBounds with no bounds.
PolygonGroupBounds(PolygonGroup group)
          Creates a new PolygonGroupBounds with the bounds of the specified PolygonGroup.
 
Method Summary
 float getBottomHeight()
           
 float getRadius()
           
 float getTopHeight()
           
 void setBottomHeight(float bottomHeight)
           
 void setRadius(float radius)
           
 void setToBounds(PolygonGroup group)
          Sets this to the bounds of the specified PolygonGroup.
 void setTopHeight(float topHeight)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonGroupBounds

public PolygonGroupBounds()
Creates a new PolygonGroupBounds with no bounds.


PolygonGroupBounds

public PolygonGroupBounds(PolygonGroup group)
Creates a new PolygonGroupBounds with the bounds of the specified PolygonGroup.

Method Detail

setToBounds

public void setToBounds(PolygonGroup group)
Sets this to the bounds of the specified PolygonGroup.


getTopHeight

public float getTopHeight()

setTopHeight

public void setTopHeight(float topHeight)

getBottomHeight

public float getBottomHeight()

setBottomHeight

public void setBottomHeight(float bottomHeight)

getRadius

public float getRadius()

setRadius

public void setRadius(float radius)