/// <summary> /// Determine if this vector is equal to another /// </summary> /// <param name="obj">The other vector</param> /// <returns></returns> public override bool Equals(object obj) { if (obj == null) { return(false); } // If parameter cannot be cast to Vector return false. Vector2D p = obj as Vector2D; if (p == null) { return(false); } return(ToString() == p.ToString()); }