Simple geometry library