5.3.2.8. Struct hcoord_t

5.3.2.8.1. Struct Documentation

struct hcoord_t

Homogeneous coordinates in 2D.

Some comprehensive explanations about 2D transformation matrices & homogeneous coordinates are given here:

The order of the fields in the structure is important because the structure can easily be “cast” in a position vector.

Public Members

float x

Abscissa component of the coordinates.

float y

Ordinate component of the coordinates.

float one

Always set to one in homogeneous coordinates (to be compatible with \( 3 \times 3 \) transformation matrices).