예제 #1
0
파일: SLaser.cs 프로젝트: jeske/SimpleScene
        public SLaser(SLaserParameters laserParams, TargetVelFunc targetVelFunc=null)
        {
            this.parameters = laserParams;
            this._localIntensityEnvelope = laserParams.intensityEnvelope.Clone();
            this.targetVelFunc = targetVelFunc;

            _beams = new SLaserBeam[parameters.numBeams];
            for (int i = 0; i < parameters.numBeams; ++i) {
                _beams[i] = new SLaserBeam(this, i);
            }
        }
예제 #2
0
        public SLaser(SLaserParameters laserParams, TargetVelFunc targetVelFunc = null)
        {
            this.parameters = laserParams;
            this._localIntensityEnvelope = laserParams.intensityEnvelope.Clone();
            this.targetVelFunc           = targetVelFunc;

            _beams = new SLaserBeam[parameters.numBeams];
            for (int i = 0; i < parameters.numBeams; ++i)
            {
                _beams[i] = new SLaserBeam(this, i);
            }
        }