|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.Box
public class Box
Defines a box with an anchor at its center and a size, both in arbitrary units.
| Field Summary | |
|---|---|
private CoordinateCartesianAbsolute |
_center
the anchor position at the center |
private Size |
_size
the size |
| Constructor Summary | |
|---|---|
Box(CoordinateCartesianAbsolute center,
Size size)
Creates a box descriptor. |
|
| Method Summary | |
|---|---|
CoordinateCartesianAbsolute |
getBoundingBoxBottomRight()
Determines the bottom-right corner of the box. |
CoordinateCartesianAbsolute |
getBoundingBoxTopLeft()
Determines the top-left corner of the box. |
CoordinateCartesianAbsolute |
getCenter()
Gets the anchor position at the center of the box. |
Size |
getSize()
Gets the size. |
boolean |
isContained(CoordinateCartesianAbsolute point)
Determines whether a point is contained within the box. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final CoordinateCartesianAbsolute _center
private final Size _size
| Constructor Detail |
|---|
public Box(CoordinateCartesianAbsolute center,
Size size)
center - - the anchor positionsize - - the size| Method Detail |
|---|
public CoordinateCartesianAbsolute getBoundingBoxBottomRight()
public CoordinateCartesianAbsolute getBoundingBoxTopLeft()
public CoordinateCartesianAbsolute getCenter()
public Size getSize()
public boolean isContained(CoordinateCartesianAbsolute point)
point - - the point
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 | ||||||||