public override bool Equals(object obj) { if (obj == null) { return(false); } FaultPoint faultPoint = obj as FaultPoint; if (faultPoint == null) { return(false); } return(position.Equals(faultPoint.position) && leftCutoff.Equals(faultPoint.leftCutoff) && rightCutoff.Equals(faultPoint.rightCutoff)); }
/// <summary> /// Add a new FaultPoint to the end of the segment. /// </summary> /// <param name="point">The position of the new FaultPoint</param> internal void Add(Point2D point) { FaultPoint faultPoint = new FaultPoint(point); Add(faultPoint); }
/// <summary> /// Add an existing FaultPoint instance to the end of the segment. /// </summary> /// <param name="faultPoint"></param> internal void Add(FaultPoint faultPoint) { interiorNodes.Add(faultPoint); }
/// <summary> /// Copy constructor /// </summary> /// <param name="other">The FaultMapPoint to be copied</param> FaultPoint(FaultPoint other) { position = other.position; leftCutoff = other.leftCutoff; rightCutoff = other.rightCutoff; }
/// <summary> /// Add a new FaultPoint to the end of the segment. /// </summary> /// <param name="point">The position of the new FaultPoint</param> internal void Add(Point2D point) { FaultPoint faultPoint = new FaultPoint(point, this); interiorNodes.Add(faultPoint); }