Geometric primitives in two dimensions for Rust