示例#1
0
        public void AngleFromGround_ReturnsCorrectAngle()
        {
            //  arrange
            Vector3 direction = new Vector3(1, 1, 0);

            //  act
            float angle = PMath.AngleFromGround(direction);

            //  assert
            Assert.AreEqual(45 * Mathf.Deg2Rad, angle);
        }