public void Test_Get_Velocity_Initial_West_Clockwise() { var motion = new CircularMotion(0, 0, new Angle(0), new Angle(-Math.PI / 2), 1, Vector.Zero); Vector velocity = new Vector(-1, 0); Vector motionVelocity = motion.GetVelocity(1000); Assert.AreEqual(velocity.X, motionVelocity.X, 0.000000000001); Assert.AreEqual(velocity.Y, motionVelocity.Y, 0.000000000001); }
public void Test_Get_Velocity_Initial_South() { var motion = new CircularMotion(0, 0, new Angle(Math.PI), new Angle(1), 1, Vector.Zero); Vector velocity = new Vector(0, -1); Vector motionVelocity = motion.GetVelocity(0); Assert.AreEqual(velocity.X, motionVelocity.X, 0.000000000001); Assert.AreEqual(velocity.Y, motionVelocity.Y, 0.000000000001); }