public override bool Equals(Object o) { if (this == o) { return(true); } if (o == null || GetType() != o.GetType()) { return(false); } SharpEarth.geom.Intersection that = (Intersection)o; if (isTangent() != that.isTangent()) { return(false); } //noinspection RedundantIfStatement if (!intersectionPoint.Equals(that.intersectionPoint)) { return(false); } return(true); }