| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BoundingBox(float
lower left x value minX, float lower left y value minY, float upper right x value maxX, float upper right y value maxY)Constructor. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true If the point is on the edge or inside the rectangle bounds.The x coordinate. x, float The y coordinate. y)Checks if a point is inside this rectangle. |
| public float | Returns: The height of this rectangle.This will get the height of this rectangle as calculated by upperRightY - lowerLeftY. |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | Returns: The width of this rectangle.This will get the width of this rectangle as calculated by upperRightX - lowerLeftX. |
| public void | setLowerLeftX(float
New value of property lowerLeftX. lowerLeftXValue)Setter for property lowerLeftX. |
| public void | setLowerLeftY(float
New value of property lowerLeftY. lowerLeftYValue)Setter for property lowerLeftY. |
| public void | setUpperRightX(float
New value of property upperRightX. upperRightXValue)Setter for property upperRightX. |
| public void | setUpperRightY(float
New value of property upperRightY. upperRightYValue)Setter for property upperRightY. |
| public String | Returns: This object as a string.Overrides java. This will return a string representation of this rectangle. |
| lowerLeftX | back to summary |
|---|---|
| private float lowerLeftX | |
| lowerLeftY | back to summary |
|---|---|
| private float lowerLeftY | |
| upperRightX | back to summary |
|---|---|
| private float upperRightX | |
| upperRightY | back to summary |
|---|---|
| private float upperRightY | |
| BoundingBox | back to summary |
|---|---|
| public BoundingBox() Default constructor. | |
| BoundingBox | back to summary |
|---|---|
| public BoundingBox(float minX, float minY, float maxX, float maxY) Constructor.
| |
| BoundingBox | back to summary |
|---|---|
| public BoundingBox(List<Number> numbers) Constructor. | |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y) Checks if a point is inside this rectangle.
| |
| getHeight | back to summary |
|---|---|
| public float getHeight() This will get the height of this rectangle as calculated by upperRightY - lowerLeftY.
| |
| getLowerLeftX | back to summary |
|---|---|
| public float getLowerLeftX() Getter for property lowerLeftX.
| |
| getLowerLeftY | back to summary |
|---|---|
| public float getLowerLeftY() Getter for property lowerLeftY.
| |
| getUpperRightX | back to summary |
|---|---|
| public float getUpperRightX() Getter for property upperRightX.
| |
| getUpperRightY | back to summary |
|---|---|
| public float getUpperRightY() Getter for property upperRightY.
| |
| getWidth | back to summary |
|---|---|
| public float getWidth() This will get the width of this rectangle as calculated by upperRightX - lowerLeftX.
| |
| setLowerLeftX | back to summary |
|---|---|
| public void setLowerLeftX(float lowerLeftXValue) Setter for property lowerLeftX.
| |
| setLowerLeftY | back to summary |
|---|---|
| public void setLowerLeftY(float lowerLeftYValue) Setter for property lowerLeftY.
| |
| setUpperRightX | back to summary |
|---|---|
| public void setUpperRightX(float upperRightXValue) Setter for property upperRightX.
| |
| setUpperRightY | back to summary |
|---|---|
| public void setUpperRightY(float upperRightYValue) Setter for property upperRightY.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This will return a string representation of this rectangle. | |