Separated geometrical-util functions in separate source file