示例#1
0
 public static Mass operator *(Duration duration, MassFlow massFlow)
 {
     return(Mass.FromKilograms(massFlow.KilogramsPerSecond * duration.Seconds));
 }
示例#2
0
 public static Mass operator *(Volume volume, Density density)
 {
     return(Mass.FromKilograms(density.KilogramsPerCubicMeter * volume.CubicMeters));
 }
示例#3
0
 public static Mass operator *(TimeSpan time, MassFlow massFlow)
 {
     return(Mass.FromKilograms(massFlow.KilogramsPerSecond * time.TotalSeconds));
 }
示例#4
0
 /// <summary>Get the total <see cref="Mass"/> by dividing the component  <see cref="Mass"/> by a <see cref="MassFraction"/>.</summary>
 public static Mass operator /(Mass mass, MassFraction massFraction)
 {
     return(Mass.FromKilograms(mass.Kilograms / massFraction.DecimalFractions));
 }
示例#5
0
 /// <summary>Get <see cref="Mass"/> from <see cref="Mass"/> multiplied by a <see cref="MassFraction"/>.</summary>
 public static Mass operator *(MassFraction massFraction, Mass mass)
 {
     return(Mass.FromKilograms(massFraction.DecimalFractions * mass.Kilograms));
 }
示例#6
0
 /// <summary>Get <see cref="Mass" /> from <see cref="MassConcentration" /> times <see cref="Volume" />.</summary>
 public static Mass operator *(MassConcentration density, Volume volume)
 {
     return(Mass.FromKilograms(density.KilogramsPerCubicMeter * volume.CubicMeters));
 }
 /// <summary>Get <see cref="Mass"/> from <see cref="Force"/> divided by <see cref="Acceleration"/>.</summary>
 public static Mass operator /(Force force, Acceleration acceleration)
 {
     return(Mass.FromKilograms(force.Newtons / acceleration.MetersPerSecondSquared));
 }