Esempio n. 1
0
        public Ray(Vector3 origin, Vector3 direction, double distance)
        {
            this.Origin    = origin;
            this.Direction = direction.GetNormalized();

            this.distance = distance;
            //  Console.WriteLine(Origin.ToString() + Direction.ToString());
        }
Esempio n. 2
0
        /// <summary>
        /// Constructor for Ray
        /// </summary>
        /// <param name="origin">Vector3 value assigned to origin</param>
        /// <param name="direction">Vector3 value assigned to direction</param>

        public Ray(Vector3 origin, Vector3 direction)
        {
            Origin = origin;
            if (!direction.isZero())
            {
                Direction = direction.GetNormalized();
            }

            this.distance = 10000000;
            // Console.WriteLine(Origin.ToString() + Direction.ToString());
        }