/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns>true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false.</returns> public bool Equals(PolarCoordinate other) { double tolerance = NMath.Min(Tolerance, other.Tolerance); return(Azimuth.Radians.IsEqualTo(other.Azimuth.Radians, tolerance) && Radius.IsEqualTo(other.Radius, tolerance)); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns>true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false.</returns> public bool Equals(CylindricalCoordinate other) { double tolerance = NMath.Min(Tolerance, other.Tolerance); return(Height.IsEqualTo(other.Height, tolerance) && Azimuth.Radians.IsEqualTo(other.Azimuth.Radians, tolerance) && Radius.IsEqualTo(other.Radius, tolerance)); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns>true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false.</returns> public bool Equals(SphericalCoordinate other) { double tolerance = NMath.Min(Tolerance, other.Tolerance); return(Inclination.Radians.IsEqualTo(other.Inclination.Radians, tolerance) && Azimuth.Radians.IsEqualTo(other.Azimuth.Radians, tolerance) && Radius.IsEqualTo(other.Radius, tolerance)); }