#include <Rect.h>
Public Methods | |
| Rect () | |
| Rect (float x2, float y2, float w2, float h2) | |
| void | init (float x2, float y2, float w2, float h2) |
| float | getRight () const |
| float | getBottom () const |
| Point | getUpperLeft () const |
| Point | getLowerRight () const |
| Point | getUpperRight () const |
| Point | getLowerLeft () const |
| Point | getCenter () const |
| void | setCenter (const Point ¢) |
| bool | isCollision (const Point &other) const |
| bool | isCollision (const Rect &other) const |
| float | distTo (const Rect &other) const |
| Finds distance based on midpoints. | |
Public Attributes | |
| float | x |
| float | y |
| float | w |
| float | h |
|
|
|
|
||||||||||||||||||||
|
|
|
|
Finds distance based on midpoints.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.18