Example #1
0
 /// <summary>
 /// Divides <paramref name="left"/> by <paramref name="right"/>
 /// </summary>
 /// <param name="left">The left value</param>
 /// <param name="right">The right value</param>
 /// <returns>The <see cref="MagneticFlux"/> that is the result from the division.</returns>
 public static MagneticFlux operator /(Energy left, Current right)
 {
     return(MagneticFlux.FromWebers(left.joules / right.amperes));
 }
Example #2
0
 public static MagneticFlux operator *(Current left, Inductance right)
 {
     return(MagneticFlux.FromWebers(left.amperes * right.henrys));
 }
Example #3
0
 public static MagneticFlux operator *(MagneticFieldStrength left, Area right)
 {
     return(MagneticFlux.FromWebers(left.teslas * right.squareMetres));
 }
Example #4
0
 /// <summary>
 /// Multiplies <paramref name="left"/> with <paramref name="right"/>
 /// </summary>
 /// <param name="left">The left value</param>
 /// <param name="right">The right value</param>
 /// <returns>The <see cref="MagneticFlux"/> that is the result from the multiplication.</returns>
 public static MagneticFlux operator *(Time left, Voltage right)
 {
     return(MagneticFlux.FromWebers(left.seconds * right.volts));
 }
Example #5
0
 /// <summary>
 /// Multiplies <paramref name="left"/> with <paramref name="right"/>
 /// </summary>
 /// <param name="left">The left value</param>
 /// <param name="right">The right value</param>
 /// <returns>The <see cref="MagneticFlux"/> that is the result from the multiplication.</returns>
 public static MagneticFlux operator *(Resistance left, ElectricCharge right)
 {
     return(MagneticFlux.FromWebers(left.ohms * right.coulombs));
 }
Example #6
0
 public bool Equals(MagneticFlux other, MagneticFlux tolerance)
 {
     Ensure.GreaterThan(tolerance.webers, 0, nameof(tolerance));
     return(Math.Abs(this.webers - other.webers) < tolerance.webers);
 }
 public static MagneticFlux operator /(ElectricCharge left, ElectricalConductance right)
 {
     return(MagneticFlux.FromWebers(left.coulombs / right.siemens));
 }
Example #8
0
 public bool Equals(MagneticFlux other)
 {
     return(this.webers.Equals(other.webers));
 }
Example #9
0
 public int CompareTo(MagneticFlux quantity)
 {
     return(this.webers.CompareTo(quantity.webers));
 }
Example #10
0
 public static bool TryParse(string text, NumberStyles styles, IFormatProvider provider, out MagneticFlux result)
 {
     return(QuantityParser.TryParse <MagneticFluxUnit, MagneticFlux>(text, From, styles, provider, out result));
 }
Example #11
0
 public static bool TryParse(string text, NumberStyles styles, out MagneticFlux result)
 {
     return(QuantityParser.TryParse <MagneticFluxUnit, MagneticFlux>(text, From, styles, CultureInfo.CurrentCulture, out result));
 }
Example #12
0
 /// <summary>
 /// Divides <paramref name="left"/> by <paramref name="right"/>
 /// </summary>
 /// <param name="left">The left value</param>
 /// <param name="right">The right value</param>
 /// <returns>The <see cref="MagneticFlux"/> that is the result from the division.</returns>
 public static MagneticFlux operator /(Voltage left, Frequency right)
 {
     return(MagneticFlux.FromWebers(left.volts / right.hertz));
 }