physics
Class SphericalShell

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

public class SphericalShell
extends Shell


Field Summary
 
Fields inherited from class physics.Shell
pos
 
Constructor Summary
SphericalShell(ReadableVector3f pos, float radius)
           
 
Method Summary
 float getRadius()
           
 Vector3f intersects(BoxShell shell)
           
 Vector3f intersects(Shell shell)
           
 Vector3f intersects(SphericalShell shell)
           
 boolean isInside(ReadableVector3f v)
           
 boolean isInside(SphericalShell s)
           
 Vector3f testCollision(ReadableVector3f p1, ReadableVector3f p2)
           
 
Methods inherited from class physics.Shell
draw, getPos
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SphericalShell

public SphericalShell(ReadableVector3f pos,
                      float radius)
Method Detail

getRadius

public float getRadius()

isInside

public boolean isInside(ReadableVector3f v)

isInside

public boolean isInside(SphericalShell s)

testCollision

public Vector3f testCollision(ReadableVector3f p1,
                              ReadableVector3f p2)
Specified by:
testCollision in class Shell

intersects

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

intersects

public Vector3f intersects(SphericalShell shell)

intersects

public Vector3f intersects(BoxShell shell)