|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmako5.math.phys.Bounds
mako5.math.phys.BoundingCircle
public class BoundingCircle
Bounds shaped like a circle.
| 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 |
|---|
public BoundingCircle(float fRadius_)
public BoundingCircle(float fRadius_,
R2v rLoc_)
| Method Detail |
|---|
public void setRadius(float fRadius_)
public float getRadius()
public boolean isCollision(R2v rLoc_)
Bounds
isCollision in class BoundsrLoc_ - the point to test for collision withpublic boolean isCollision(BoundingCircle rBound_)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||