Example #1
0
        private Ray CreateRandomRay(Vector3 startPoint)
        {
            var angle  = QuaternionHelper.RandomQuaternion();
            var newPos = startPoint + angle * new Vector3(1, 0, 0) * 10;

            return(new Ray(newPos, startPoint - newPos));
        }