Arduboy2 Library  6.0.0
Point Struct Reference

An object to define a single point for collision functions. More...

#include <Arduboy2.h>

Public Member Functions

 Point ()=default
 The default constructor.
 
constexpr Point (int16_t x, int16_t y)
 The fully initializing constructor. More...
 

Public Attributes

int16_t x
 
int16_t y
 

Detailed Description

An object to define a single point for collision functions.

The location of the point is given by X and Y coordinates.

See also
Arduboy2Base::collide(Point, Rect) Rect

Definition at line 146 of file Arduboy2.h.

Constructor & Destructor Documentation

◆ Point()

constexpr Point::Point ( int16_t  x,
int16_t  y 
)
inlineconstexpr

The fully initializing constructor.

Parameters
xThe X coordinate of the point. Copied to variable x.
yThe Y coordinate of the point. Copied to variable y.

Definition at line 162 of file Arduboy2.h.

Member Data Documentation

◆ x

int16_t Point::x

The X coordinate of the point

Definition at line 148 of file Arduboy2.h.

◆ y

int16_t Point::y

The Y coordinate of the point

Definition at line 149 of file Arduboy2.h.


The documentation for this struct was generated from the following file: