Beispiel #1
0
            public void ClampsWhenLargerThanMax()
            {
                var sut = new Vector3(1, 0, 0);

                Assert.AreEqual(new Vector3(0.5f, 0, 0), sut.ClampLength(0.5f));
            }
Beispiel #2
0
            public void DoesNothingIfMagnitudeIsWithinMax()
            {
                var sut = new Vector3(1, 0, 0);

                Assert.AreEqual(new Vector3(1, 0, 0), sut.ClampLength(10));
            }