Example #1
0
 public static Acceleration operator /(Speed speed, Duration duration)
 {
     return(Acceleration.FromMetersPerSecondSquared(speed.MetersPerSecond / duration.Seconds));
 }
 /// <summary>Get <see cref="Acceleration"/> from <see cref="Force"/> divided by <see cref="Mass"/>.</summary>
 public static Acceleration operator /(Force force, Mass mass)
 {
     return(Acceleration.FromMetersPerSecondSquared(force.Newtons / mass.Kilograms));
 }
Example #3
0
        // Windows Runtime Component does not allow operator overloads: https://msdn.microsoft.com/en-us/library/br230301.aspx
#if !WINDOWS_UWP
        public static Acceleration operator /(Speed speed, TimeSpan timeSpan)
        {
            return(Acceleration.FromMetersPerSecondSquared(speed.MetersPerSecond / timeSpan.TotalSeconds));
        }