コード例 #1
0
 public static Jerk MetersPerSecondCubed <T>(this T value) =>
 Jerk.FromMetersPerSecondCubed(Convert.ToDouble(value));
コード例 #2
0
        public void AccelerationDividedByDurationEqualsJerk()
        {
            Jerk jerk = Acceleration.FromMetersPerSecondSquared(10) / Duration.FromSeconds(2);

            Assert.Equal(Jerk.FromMetersPerSecondCubed(5), jerk);
        }
コード例 #3
0
 public void NumberToMetersPerSecondCubedTest() =>
 Assert.Equal(Jerk.FromMetersPerSecondCubed(2), 2.MetersPerSecondCubed());