The Apache Commons Geometry project provides geometric types and utilities.