Arduboy2 Library
6.0.0
|
A rectangle object for collision functions. More...
#include <Arduboy2.h>
Public Member Functions | |
Rect ()=default | |
The default constructor. | |
constexpr | Rect (int16_t x, int16_t y, uint8_t width, uint8_t height) |
The fully initializing constructor. More... | |
Public Attributes | |
int16_t | x |
int16_t | y |
uint8_t | width |
uint8_t | height |
A rectangle object for collision functions.
The X and Y coordinates specify the top left corner of a rectangle with the given width and height.
Definition at line 108 of file Arduboy2.h.
|
inlineconstexpr |
The fully initializing constructor.
x | The X coordinate of the top left corner. Copied to variable x . |
y | The Y coordinate of the top left corner. Copied to variable y . |
width | The width of the rectangle. Copied to variable width . |
height | The height of the rectangle. Copied to variable height . |
Definition at line 128 of file Arduboy2.h.
uint8_t Rect::height |
The height of the rectangle
Definition at line 113 of file Arduboy2.h.
uint8_t Rect::width |
The width of the rectangle
Definition at line 112 of file Arduboy2.h.
int16_t Rect::x |
The X coordinate of the top left corner
Definition at line 110 of file Arduboy2.h.
int16_t Rect::y |
The Y coordinate of the top left corner
Definition at line 111 of file Arduboy2.h.