public virtual void SetLocation(ICoordinatePoint point) { if (point.Dimension >= 2) { m_dX = point.GetOrdinate(0); m_dY = point.GetOrdinate(1); } else { throw new ArgumentException("The dimension of the point is not valid"); } }
/// <summary> /// Set this coordinate to the specified <see cref="CoordinatePoint"/>. /// </summary> /// <param name="point">The new coordinate for this point.</param> public void SetLocation(ICoordinatePoint point) { EnsureDimensionMatch(point.Ordinate.Length); Array.Copy(point.Ordinate, 0, ord, 0, ord.Length); }