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