Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
A class representing a touch consisting of an x and y coordinate and a time. More...
#include <TouchTypes.h>
Public Member Functions | |
bool | valid () const |
Checks if the touch is valid i.e. if the x/y coordinates and the time are >= 0. | |
void | copy (const Touch &other) |
Copies the x/y coordinates and the time from the given touch. | |
Public Member Functions inherited from CVector | |
CVector ()=default | |
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 |
Public Attributes | |
int64_t | time = -1 |
Public Attributes inherited from CVector | |
float | x = 0 |
float | y = 0 |
A class representing a touch consisting of an x and y coordinate and a time.
Copies the x/y coordinates and the time from the given touch.
other | Touch to copy x/y coordinates and time from |
|
inline |
Checks if the touch is valid i.e. if the x/y coordinates and the time are >= 0.
int64_t Touch::time = -1 |