Esempio n. 1
0
        public SLaser(SLaserParameters laserParams)
        {
            this.parameters = laserParams;
            this._localIntensityEnvelope = laserParams.intensityEnvelope.Clone();

            _beams = new SLaserBeam[parameters.numBeams];
            for (int i = 0; i < parameters.numBeams; ++i) {
                _beams[i] = new SLaserBeam(this, i);
            }
        }
Esempio n. 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);
            }
        }