예제 #1
0
파일: Ray.cs 프로젝트: Itorius/2D-Raytracer
        public Ray(Vector2 start, Vector2 direction, double wavelength)
        {
            this.start      = start;
            this.direction  = direction;
            this.wavelength = wavelength;
            color           = PhysicsUtility.GetColor(wavelength);

            collisionPoints = new List <Vector2> {
                start
            };
        }