コード例 #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
            };
        }