コード例 #1
0
        // Windows Runtime Component does not allow operator overloads: https://msdn.microsoft.com/en-us/library/br230301.aspx
#if !WINDOWS_UWP
        public static Speed operator /(KinematicViscosity kinematicViscosity, Length length)
        {
            return(Speed.FromMetersPerSecond(kinematicViscosity.SquareMetersPerSecond / length.Meters));
        }
コード例 #2
0
 public static Speed operator /(Length length, Duration duration)
 {
     return(Speed.FromMetersPerSecond(length.Meters / duration.Seconds));
 }
コード例 #3
0
 /// <summary>Get <see cref="Speed"/> from <see cref="VolumeFlow"/> divided by <see cref="Area"/>.</summary>
 public static Speed operator /(VolumeFlow volumeFlow, Area area)
 {
     return(Speed.FromMetersPerSecond(volumeFlow.CubicMetersPerSecond / area.SquareMeters));
 }
コード例 #4
0
 public static Speed operator /(Length length, TimeSpan timeSpan)
 {
     return(Speed.FromMetersPerSecond(length.Meters / timeSpan.TotalSeconds));
 }