Skip to main content

Point

touchgfx/hal/Types.hpp

A simple struct containing coordinates.

Public Functions

int32_tdist_sqr(struct Point & o)
The squared distance from this Point to another Point.

Public Attributes

int32_tx
The x coordinate.
int32_ty
The y coordinate.

Public Functions Documentation

dist_sqr

int32_t dist_sqr(struct Point &o)

The squared distance from this Point to another Point.

Parameters:
oThe point to get the squared distance to.
Returns:

The squared distance.

Public Attributes Documentation

x

int32_t x

The x coordinate.

y

int32_t y

The y coordinate.