/// <summary> /// Returns distance between this and another point. /// </summary> /// <param name="?"></param> public double DistanceFrom(PointTwoD other) { double difx = this.X - other.X; double dify = this.Y - other.Y; return(Math.Sqrt(difx * difx + dify * dify)); }
/// <summary> /// Creates an instance of the PointTwoD as a copy of the given instance. /// </summary> public PointTwoD(PointTwoD point) : this(point.X, point.Y) { }