示例#1
0
        public void AngleToVectorLengthTest()
        {
            Vector <float> res = VectorMath.AngleToVector(45, 2);

            Assert.AreEqual(res[0], 1.4142, 0.0001);
            Assert.AreEqual(res[1], 1.4142, 0.0001);
        }
示例#2
0
        public void SimpleAngleToVectorTest()
        {
            Vector <float> res = VectorMath.AngleToVector(45);

            Assert.AreEqual(res[0], 0.7071, 0.0001);
            Assert.AreEqual(res[1], 0.7071, 0.0001);
        }