|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmako5.math.phys.Bounds
public abstract class Bounds
Represents the bounds of an object.
| Field Summary | |
|---|---|
static int |
BOUNDARY
|
static int |
CIRCLE
|
static int |
LINE
|
static int |
RECT
|
| Constructor Summary | |
|---|---|
Bounds(int iType_)
Creates a new Bounds object. |
|
Bounds(R2v rLoc_,
int iType_)
Creates a new Bounds object. |
|
| Method Summary | |
|---|---|
void |
aliasLoc(R2v rLoc_)
Aliases the given location. |
R2v |
getLocation()
Returns the location this bounds is attached to. |
int |
getType()
Deprecated. 04-Apr 2006 |
abstract boolean |
isCollision(R2v rLoc_)
Determines if there is a collision between this and a given point |
static boolean |
testCollision(Boundary bd,
BoundingRect rc)
Tests for collision between a boundary and a bounded rectangle. |
static boolean |
testCollision(BoundingRect a,
BoundingRect b)
Tests for a collision between a rectangle and another rectangle. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CIRCLE
public static final int LINE
public static final int RECT
public static final int BOUNDARY
| Constructor Detail |
|---|
public Bounds(int iType_)
iType_ - the ID for the type of this object
public Bounds(R2v rLoc_,
int iType_)
| Method Detail |
|---|
@Deprecated public int getType()
public final void aliasLoc(R2v rLoc_)
public R2v getLocation()
public abstract boolean isCollision(R2v rLoc_)
rLoc_ - the point to test for collision with
public static boolean testCollision(Boundary bd,
BoundingRect rc)
bd - the boundaryrc - the bounding rect
public static boolean testCollision(BoundingRect a,
BoundingRect b)
a - the first rectangleb - the second rectangle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||