Skip to main content
Version: 4.16

Point

A simple struct containing coordinates.

Public Functions#

unsigneddist_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#

unsigned 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.