Exemple #1
0
        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));
        }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
 /// <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);
 }
Exemple #4
0
 /// <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;
 }
Exemple #5
0
        /// <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);
        }