示例#1
0
 public static Volume operator *(VolumeFlow volumeFlow, Duration duration)
 {
     return(Volume.FromCubicMeters(volumeFlow.CubicMetersPerSecond * duration.Seconds));
 }
示例#2
0
 public static Volume operator /(Mass mass, Density density)
 {
     return(Volume.FromCubicMeters(mass.Kilograms / density.KilogramsPerCubicMeter));
 }
示例#3
0
        // Windows Runtime Component does not allow operator overloads: https://msdn.microsoft.com/en-us/library/br230301.aspx
#if !WINDOWS_UWP
        public static Volume operator *(VolumeFlow volumeFlow, TimeSpan timeSpan)
        {
            return(Volume.FromCubicMeters(volumeFlow.CubicMetersPerSecond * timeSpan.TotalSeconds));
        }
示例#4
0
 public static Volume operator *(Length length, Area area)
 {
     return(Volume.FromCubicMeters(area.SquareMeters * length.Meters));
 }
示例#5
0
 public static Volume operator *(SpecificVolume volume, Mass mass)
 {
     return(Volume.FromCubicMeters(volume.CubicMetersPerKilogram * mass.Kilograms));
 }
示例#6
0
 /// <summary>Get <see cref="Volume" /> from <see cref="AmountOfSubstance" /> divided by <see cref="Molarity" />.</summary>
 public static Volume operator /(AmountOfSubstance amountOfSubstance, Molarity molarity)
 {
     return(Volume.FromCubicMeters(amountOfSubstance.Moles / molarity.MolesPerCubicMeter));
 }
示例#7
0
 /// <summary>Get <see cref="Volume"/> from <see cref="AreaMomentOfInertia"/> divided by <see cref="Length"/>.</summary>
 public static Volume operator /(AreaMomentOfInertia areaMomentOfInertia, Length length)
 {
     return(Volume.FromCubicMeters(areaMomentOfInertia.MetersToTheFourth / length.Meters));
 }