A class representing a touch consisting of an x and y coordinate and a time.
More...
#include <TouchTypes.h>
|
bool | valid () const |
| Checks if the touch is valid i.e. if the x/y coordinates and the time are >= 0. More...
|
|
void | copy (const Touch &other) |
| Copies the x/y coordinates and the time from the given touch. More...
|
|
constexpr | CVector (float xCoord, float yCoord) |
|
constexpr CVector | operator+ (const CVector &other) const |
|
constexpr CVector | operator- (const CVector &other) const |
|
CVector & | operator+= (const CVector &other) |
|
CVector & | operator-= (const CVector &other) |
|
constexpr float | scalar (const CVector &other) const |
|
float | length () const |
|
|
int64_t | time = -1 |
|
float | x = 0 |
|
float | y = 0 |
|
A class representing a touch consisting of an x and y coordinate and a time.
◆ copy()
void Touch::copy |
( |
const Touch & |
other | ) |
|
|
inline |
Copies the x/y coordinates and the time from the given touch.
- Parameters
-
other | Touch to copy x/y coordinates and time from |
◆ valid()
bool Touch::valid |
( |
| ) |
const |
|
inline |
Checks if the touch is valid i.e. if the x/y coordinates and the time are >= 0.
- Returns
- True if the touch is valid otherwise false
The documentation for this class was generated from the following file: