Exemple #1
0
        public void GetEndpointAtDistance_ReturnsEndpoint()
        {
            //  arrange
            Vector3 position  = new Vector3(0, 5, 10);
            Vector3 direction = new Vector3(1, 0, 0);
            float   distance  = 1024;

            //  act
            Vector3 endpoint = PMath.GetEndpointAtDistance(position, direction, distance);

            //  assert
            Assert.AreEqual(new Vector3(1024, 5, 10), endpoint);
        }