Example #1
0
 /// <summary>Create a velocity vector from MetrePerSecond values.</summary>
 public static Velocity3 MetresPerSecond(ref Vector3d value)
 {
     return(new Velocity3(Velocity.MetresPerSecond(value.X), Velocity.MetresPerSecond(value.Y), Velocity.MetresPerSecond(value.Z)));
 }
Example #2
0
 /// <summary>Divide a <see cref="Length"/> by a <see cref="TimeSpan"/>, producing a <see cref="Velocity"/>.</summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public static Velocity operator /(Length a, TimeSpan b)
 {
     return(Velocity.MetresPerSecond(a.InMetres / b.TotalSeconds));
 }
Example #3
0
 /// <summary>Create a velocity vector from MetrePerSecond values.</summary>
 public static Velocity3 MetresPerSecond(double x, double y, double z)
 {
     return(new Velocity3(Velocity.MetresPerSecond(x), Velocity.MetresPerSecond(y), Velocity.MetresPerSecond(z)));
 }