lib for geometric operations