public void VelocityNormalized()
        {
            var myCurve = new CubicBezierCurve2D(
                new Vector2(-4, -4),
                new Vector2(-2, 4),
                new Vector2(2, -4),
                new Vector2(4, 4)
                );

            myCurve.Velocity(3, 2, 4).Should().BeEquivalentTo(new Vector2(9, 0));
            myCurve.Velocity(2, 1, 5).Should().BeEquivalentTo(new Vector2(8.25f, 6f));
            myCurve.Velocity(11, 2, 14).Should().BeEquivalentTo(new Vector2(8.25f, 6f));

            myCurve.Invoking(x => x.Velocity(15, 2, 5)).Should().Throw <ArgumentException>();
        }
        public void Point()
        {
            var myCurve = new CubicBezierCurve2D(
                new Vector2(-4, -4),
                new Vector2(-2, 4),
                new Vector2(2, -4),
                new Vector2(4, 4)
                );

            myCurve.Point(0.5f).Should().BeEquivalentTo(new Vector2(0, 0));
            myCurve.Point(0.25f).Should().BeEquivalentTo(new Vector2(-2.1875f, -0.5f));
            myCurve.Point(0.75f).Should().BeEquivalentTo(new Vector2(2.1875f, 0.5f));

            myCurve.Invoking(x => x.Point(1.5f)).Should().Throw <ArgumentException>();
        }
        public void Velocity()
        {
            var myCurve = new CubicBezierCurve2D(
                new Vector2(-4, -4),
                new Vector2(-2, 4),
                new Vector2(2, -4),
                new Vector2(4, 4)
                );

            myCurve.Velocity(0.5f).Should().BeEquivalentTo(new Vector2(9, 0));
            myCurve.Velocity(0.25f).Should().BeEquivalentTo(new Vector2(8.25f, 6f));
            myCurve.Velocity(0.75f).Should().BeEquivalentTo(new Vector2(8.25f, 6f));

            myCurve.Invoking(x => x.Velocity(1.5f)).Should().Throw <ArgumentException>();
        }