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