mako5.math.phys
Class BoundingCircle

java.lang.Object
  extended by mako5.math.phys.Bounds
      extended by mako5.math.phys.BoundingCircle

public class BoundingCircle
extends Bounds

Bounds shaped like a circle.

Version:
17-Feb 2006
Author:
Paul Jarrett

Field Summary
 
Fields inherited from class mako5.math.phys.Bounds
BOUNDARY, CIRCLE, LINE, RECT
 
Constructor Summary
BoundingCircle(float fRadius_)
          Creates a new BoundingCircle.
BoundingCircle(float fRadius_, R2v rLoc_)
          Creates a new BoundingCircle
 
Method Summary
 float getRadius()
          Returns the radius
 boolean isCollision(BoundingCircle rBound_)
          Determines if there is a collision between this and another object.
 boolean isCollision(R2v rLoc_)
          Determines if there is a collision between this and a given point
 void setRadius(float fRadius_)
          Sets the radius
 
Methods inherited from class mako5.math.phys.Bounds
aliasLoc, getLocation, getType, testCollision, testCollision
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundingCircle

public BoundingCircle(float fRadius_)
Creates a new BoundingCircle.


BoundingCircle

public BoundingCircle(float fRadius_,
                      R2v rLoc_)
Creates a new BoundingCircle

Method Detail

setRadius

public void setRadius(float fRadius_)
Sets the radius


getRadius

public float getRadius()
Returns the radius


isCollision

public boolean isCollision(R2v rLoc_)
Description copied from class: Bounds
Determines if there is a collision between this and a given point

Specified by:
isCollision in class Bounds
Parameters:
rLoc_ - the point to test for collision with

isCollision

public boolean isCollision(BoundingCircle rBound_)
Determines if there is a collision between this and another object.

Since:
07-Jul 2006