Beispiel #1
0
        public void QuaternionLengthSquaredTest()
        {
            Vector3 v = new Vector3(1.0f, 2.0f, 3.0f);
            Single  w = 4.0f;

            Quaternion target = new Quaternion(v, w);

            Single expected = 30.0f;
            Single actual;

            actual = target.LengthSquared();

            Assert.True(MathHelper.Equal(expected, actual), $"Quaternion.LengthSquared did not return the expected value: expected {expected} actual {actual}");
        }