Skip to main content

Module geometry

Module geometry 

Source
Expand description

Geometry utilities.

Structsยง

OffsetU32
An offset represented by two 32-bit unsigned integers.
PaddingU16
Padding for the four sides of a region.
RectU16
An axis-aligned rectangle with u16 coordinates, stored as two corners (x0, y0) and (x1, y1).
RectU32
An axis-aligned rectangle with u32 coordinates.
SizeU16
A size represented by two 16-bit unsigned integers.
SizeU32
A size represented by two 32-bit unsigned integers.

Functionsยง

const_max ๐Ÿ”’
const_min ๐Ÿ”’