2D geometry for Rust