Ejemplo n.º 1
0
        public static void TestRotationVelocity()
        {
            double rotation = VoronoiEdge.RotationVelocity(
                new double[] { 1, 0 },
                new double[] { 0, 1 },
                new double[] { -1, 0 },
                new double[] { 0, -1 },
                new double[] { 0, -1 });
            double expectedRotation = 1;

            Assert.IsTrue(Math.Abs(rotation - expectedRotation) < 1e-12,
                          "Speed of rotation is not correct.");
        }