Spatium is a C++23 library that abstracts mathematical spaces through a concept hierarchy, allowing geometric algorithms to work on any space satisfying the requirements—from Euclidean to hyperbolic to Riemannian manifolds—without code duplication. It includes mesh operations, geodesics, ray casting, and a declarative scene DSL, with optional GPU acceleration via CUDA and support for arbitrary precision arithmetic.