/// <summary> /// Equals - compares this Vector3D with the passed in object. In this equality /// Double.NaN is equal to itself, unlike in numeric equality. /// Note that double values can acquire error when operated upon, such that /// an exact comparison between two values which /// are logically equal may fail. /// </summary> /// <returns> /// bool - true if the object is an instance of Vector3D and if it's equal to "this". /// </returns> /// <param name='o'>The object to compare to "this"</param> public override bool Equals(object o) { if ((null == o) || !(o is Vector3D)) { return(false); } Vector3D value = (Vector3D)o; return(Vector3D.Equals(this, value)); }
/// <summary> /// Equals - compares this Vector3D with the passed in object. In this equality /// Double.NaN is equal to itself, unlike in numeric equality. /// Note that double values can acquire error when operated upon, such that /// an exact comparison between two values which /// are logically equal may fail. /// </summary> /// <returns> /// bool - true if "value" is equal to "this". /// </returns> /// <param name='value'>The Vector3D to compare to "this"</param> public bool Equals(Vector3D value) { return(Vector3D.Equals(this, value)); }