Struct Pivot

Struct Documentation

struct Pivot

Normalized origin within a frame: (0,0) is its top-left, (1,1) its bottom-right.

Public Members

float x = {0.5f}

Normalized horizontal pivot:0 left,1 right; geometry builders require finite [0,1].

float y = {0.5f}

Normalized vertical pivot:0 top,1 bottom; converted into local Y-up geometry.

Friends

friend bool operator==(const Pivot&, const Pivot&) = default

Compare x and y exactly, without tolerance or validity checks.