Some simple computationa geometry utilities