コード例 #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));
 }