Geometry primitives written in rust