BEEP-8 Helper Lib 1.0.0
|
A structure for representing rectangles with fixed-point coordinates. More...
#include <submath.h>
Public Member Functions | |
void | SetXYWH (fx8 x_, fx8 y_, fx8 w_, fx8 h_) |
Set the coordinates and dimensions of the rectangle. | |
fx8 | MiddlePointX () |
Calculate the middle point x-coordinate of the rectangle. | |
Rect (fx8 x_, fx8 y_, fx8 w_, fx8 h_) | |
Public Attributes | |
fx8 | x |
fx8 | y |
fx8 | w |
fx8 | h |
A structure for representing rectangles with fixed-point coordinates.
|
inline |
Calculate the middle point x-coordinate of the rectangle.
Set the coordinates and dimensions of the rectangle.
xx_ | The x-coordinate of the rectangle. |
yy_ | The y-coordinate of the rectangle. |
ww_ | The width of the rectangle. |
hh_ | The height of the rectangle. |