/// <summary> /// Determines whether the specified <see cref="object" />, is equal to this instance. /// </summary> /// <param name="obj">The <see cref="object" /> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="object" /> is equal to this instance; otherwise, <c>false</c>. /// </returns> public override bool Equals(object obj) { return QuantityHelper.AreEqual(this, obj); }
/// <summary> /// Determines whether the specified <see cref="Acceleration" />, is equal to this instance. /// </summary> /// <param name="quantity">The quantity.</param> /// <returns> /// <c>true</c> if the specified <see cref="Acceleration" /> is equal to this instance; otherwise, <c>false</c>. /// </returns> public bool Equals(Quantity quantity) { return QuantityHelper.AreEqual(this, quantity); }
/// <summary> /// Determines whether the specified rhs, is different from the lhs. /// </summary> /// <param name="lhs">The LHS.</param> /// <param name="rhs">The RHS.</param> /// <returns> /// <c>true</c> if the specified rhs is different to the lhs; otherwise, <c>false</c>. /// </returns> public static bool operator !=(Quantity lhs, Quantity rhs) { return !QuantityHelper.AreEqual(lhs, rhs); }