Reference

std/geometry

The shapes, and what they answer about each other: what contains a point, what two of them share, how far apart they are, and which axis-aligned box holds one.

Every shape is generic over its scalar in the same way std/linear's vectors are. A Rectangle<Int> is the pixel or tile rectangle and a Rectangle is the continuous one; the tests that need a square root or an angle live under Real, and everything else works with whole numbers.

The package is pure value arithmetic: it knows about vectors and about nothing else.

Modules

Everything