normalize method
void
normalize()
Puts the line segment into a normalized form. This is useful for using line segments in maps and indexes when topological equality rather than exact equality is desired. A segment in normalized form has the first point smaller than the second (according to the standard ordering on {@link Coordinate}).
Implementation
void normalize() {
if (p1.compareTo(p0) < 0) reverse();
}