public class BoundingBox
extends java.lang.Object
Constructor and Description |
---|
BoundingBox(int x,
int y,
int width,
int height)
Creates new bounding box.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
The height of the box.
|
int |
getWidth()
The width of the box.
|
int |
getX()
The x coordinate of the top-left point.
|
int |
getY()
The y coordinate of the top-left point.
|
java.lang.String |
toString() |
public BoundingBox(int x, int y, int width, int height)
x
- the x coordinate of the top-left pointy
- the y coordinate of the top-left pointwidth
- the width of the boxheight
- the height of the boxpublic int getX()
public int getY()
public int getWidth()
public int getHeight()
public java.lang.String toString()
toString
in class java.lang.Object