Adafruit FT6206 Arduino Library
Public Member Functions | Public Attributes | List of all members
TS_Point Class Reference

Helper class that stores a TouchScreen Point with x, y, and z coordinates, for easy math/comparison. More...

#include <Adafruit_FT6206.h>

Public Member Functions

 TS_Point (void)
 Instantiates a new FT6206 class with x, y and z set to 0 by default.
 
 TS_Point (int16_t x, int16_t y, int16_t z)
 Instantiates a new FT6206 class with x, y and z set by params. More...
 
bool operator== (TS_Point)
 Simple == comparator for two TS_Point objects. More...
 
bool operator!= (TS_Point)
 Simple != comparator for two TS_Point objects. More...
 

Public Attributes

int16_t x
 
int16_t y
 
int16_t z
 

Detailed Description

Helper class that stores a TouchScreen Point with x, y, and z coordinates, for easy math/comparison.

Constructor & Destructor Documentation

◆ TS_Point()

TS_Point::TS_Point ( int16_t  _x,
int16_t  _y,
int16_t  _z 
)

Instantiates a new FT6206 class with x, y and z set by params.

Parameters
_xThe X coordinate
_yThe Y coordinate
_zThe Z coordinate

Member Function Documentation

◆ operator==()

bool TS_Point::operator== ( TS_Point  p1)

Simple == comparator for two TS_Point objects.

Returns
True if x, y and z are the same for both points, False otherwise.

◆ operator!=()

bool TS_Point::operator!= ( TS_Point  p1)

Simple != comparator for two TS_Point objects.

Returns
False if x, y and z are the same for both points, True otherwise.

Member Data Documentation

◆ x

int16_t TS_Point::x

X coordinate

◆ y

int16_t TS_Point::y

Y coordinate

◆ z

int16_t TS_Point::z

Z coordinate (often used for pressure)


The documentation for this class was generated from the following files: