CommonlyUsedGeometry related math functions in C++