Math

:= []

Math module - small 2D helpers for examples and simple games.

Coordinates use the same screen-space convention as Draw: x grows to the right, y grows downward, and rectangles are top-left plus width/height.

sqrt : F32 -> F32

Square root for game-scale F32 values. Roc's pinned builtins do not expose sqrt yet, so keep this pure Roc.

add : Vec2, Vec2 -> Vec2
sub : Vec2, Vec2 -> Vec2