public static Volume operator *(VolumeFlow volumeFlow, Duration duration) { return(Volume.FromCubicMeters(volumeFlow.CubicMetersPerSecond * duration.Seconds)); }
public static Volume operator /(Mass mass, Density density) { return(Volume.FromCubicMeters(mass.Kilograms / density.KilogramsPerCubicMeter)); }
// 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)); }
public static Volume operator *(Length length, Area area) { return(Volume.FromCubicMeters(area.SquareMeters * length.Meters)); }
public static Volume operator *(SpecificVolume volume, Mass mass) { return(Volume.FromCubicMeters(volume.CubicMetersPerKilogram * mass.Kilograms)); }
/// <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)); }
/// <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)); }