/// <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()); }