Skip to main content

Module geometry

Module geometry 

Source
Expand description

Plain geometry: points, vectors, sizes and rectangles.

These carry no unit. Semantic trees store them bare, in logical pixels; APIs where a caller could hand over either unit wrap them in Logical or Physical.

Structsยง

Point
A point in two dimensions.
Rect
An axis-aligned rectangle given by its top-left corner and its size.
Size
A width and a height.
Vector
A displacement in two dimensions.