physics
Class CylindricalShell

java.lang.Object
  extended by physics.Shell
      extended by physics.CylindricalShell

public class CylindricalShell
extends Shell


Field Summary
 
Fields inherited from class physics.Shell
pos
 
Constructor Summary
CylindricalShell(ReadableVector3f pos, float radius, float height)
           
 
Method Summary
 void draw()
           
 Vector3f intersects(BoxShell rect)
           
 Vector3f intersects(CylindricalShell shell)
           
 Vector3f intersects(Shell shell)
           
 void setHeight(float height)
           
 void setRadius(float radius)
           
 Vector3f testCollision(ReadableVector3f v1, ReadableVector3f v2)
           
 
Methods inherited from class physics.Shell
getPos
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CylindricalShell

public CylindricalShell(ReadableVector3f pos,
                        float radius,
                        float height)
Method Detail

setRadius

public void setRadius(float radius)

setHeight

public void setHeight(float height)

intersects

public Vector3f intersects(Shell shell)
Specified by:
intersects in class Shell

intersects

public Vector3f intersects(CylindricalShell shell)

intersects

public Vector3f intersects(BoxShell rect)

testCollision

public Vector3f testCollision(ReadableVector3f v1,
                              ReadableVector3f v2)
Specified by:
testCollision in class Shell

draw

public void draw()
Overrides:
draw in class Shell