mirror of https://github.com/MLXXXp/Arduboy2.git
Add constructors to Point
This commit is contained in:
parent
2f851f8784
commit
2427e7c86b
|
|
@ -17,6 +17,15 @@ Rect::Rect(int16_t x, int16_t y, uint8_t width, uint8_t height)
|
|||
{
|
||||
}
|
||||
|
||||
//=================================
|
||||
//========== class Point ==========
|
||||
//=================================
|
||||
|
||||
Point::Point(int16_t x, int16_t y)
|
||||
: x(x), y(y)
|
||||
{
|
||||
}
|
||||
|
||||
//========================================
|
||||
//========== class Arduboy2Base ==========
|
||||
//========================================
|
||||
|
|
|
|||
|
|
@ -122,6 +122,10 @@ struct Point
|
|||
{
|
||||
int16_t x; /**< The X coordinate of the point */
|
||||
int16_t y; /**< The Y coordinate of the point */
|
||||
|
||||
Point() = default; /**< The default constructor of the point */
|
||||
|
||||
Point(int16_t x, int16_t y); /**< The fully initialising constructor of the point */
|
||||
};
|
||||
|
||||
//==================================
|
||||
|
|
|
|||
Loading…
Reference in New Issue