|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--roboplayer.geometry.Rectangle
Helper class for different rectangle functions.
| Constructor Summary | |
Rectangle()
Empty constructor |
|
Rectangle(double x1,
double y1,
double x2,
double y2)
constructor |
|
| Method Summary | |
Vector2d |
getCenter()
return center of the rectangle |
boolean |
isIn(Vector2d pos)
check if given point is inside rectangle |
java.lang.String |
toString()
Convert to string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Rectangle()
public Rectangle(double x1,
double y1,
double x2,
double y2)
x1 - lefty1 - topx2 - righty2 - bottom| Method Detail |
public boolean isIn(Vector2d pos)
pos - point position
public Vector2d getCenter()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||