예제 #1
0
        /// <summary> Compares the specified object with
        /// this coordinate for equality.
        /// </summary>
        public override bool Equals(System.Object obj)
        {
            if (obj is CoordinatePoint)
            {
                CoordinatePoint that = (CoordinatePoint)obj;

                return(IsArrayEqual(this.ord, that.ord));
            }

            return(false);
        }
예제 #2
0
 /// <summary>
 /// Construct a coordinate initialized to the same values than the
 /// specified point.
 /// </summary>
 public CoordinatePoint(CoordinatePoint point)
 {
     ord = new double[point.ord.Length];
     point.ord.CopyTo(ord, 0);
 }