Reference

std/linear

Vectors, matrices, quaternions and angles, generic over the scalar they are made of.

There is one vector type per width and not two: Vector2 is the Float vector, Vector2<Int> the pixel or grid vector, and Vector2<Fixed> the deterministic one. What each of them can do is decided by the scalar's bound - everything that is arithmetic alone lives under Numeric, and everything that needs a square root or an angle lives under Real (std/number).

The package is pure value arithmetic. It knows nothing about entities, rendering or files, and the packages that do build on it instead.

Modules

Everything