|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfang.Box2D
public class Box2D
| Field Summary | |
|---|---|
double |
height
|
double |
width
|
double |
x
|
double |
y
|
| Constructor Summary | |
|---|---|
Box2D()
|
|
Box2D(Box2D other)
|
|
Box2D(double left,
double top,
double width,
double height)
|
|
Box2D(Location2D center,
Size2D size)
|
|
Box2D(Rectangle2D other)
|
|
| Method Summary | |
|---|---|
boolean |
contains(Point2D point)
|
double |
getBottom()
|
Location2D |
getCenter()
|
double |
getHeight()
|
double |
getLeft()
|
double |
getMaxX()
|
double |
getMaxY()
|
double |
getMinX()
|
double |
getMinY()
|
double |
getRight()
|
Size2D |
getSize()
|
double |
getTop()
|
double |
getWidth()
|
double |
getx()
|
double |
getX()
|
double |
gety()
|
double |
getY()
|
boolean |
intersects(Location2D point)
|
boolean |
intersects(Sprite sprite)
|
int |
outcode(double x,
double y)
|
int |
outcode(Point2D p)
|
Rectangle2D |
Rectangle2D()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double x
public double y
public double width
public double height
| Constructor Detail |
|---|
public Box2D()
public Box2D(double left,
double top,
double width,
double height)
public Box2D(Location2D center,
Size2D size)
public Box2D(Rectangle2D other)
public Box2D(Box2D other)
| Method Detail |
|---|
public double getWidth()
public double getHeight()
public Rectangle2D Rectangle2D()
public Location2D getCenter()
public double getx()
public double gety()
public double getX()
public double getY()
public Size2D getSize()
public double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public double getLeft()
public double getTop()
public double getRight()
public double getBottom()
public int outcode(Point2D p)
public int outcode(double x,
double y)
public boolean contains(Point2D point)
public boolean intersects(Location2D point)
public boolean intersects(Sprite sprite)
public String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||