Skip to main content
otter-geo is 2D geometry for layout and hit testing. Integer math on hot paths, no render deps. otter-ui, otter-render, otter-wayland, and otter-config-types all pull types from here.

Quick example

Documentation map

Types and operations

Point, Rect, Circle, Padding, Align, and Transform.

Design rules

  • Coordinates are u16 or u31 depending on type. No floats in layout.
  • Rect helpers cover intersection, union, inset, and centering.
  • Transform uses 16.16 fixed-point rotation for integer-safe transforms.

Dependencies

None.