ELightBeam constructor

ELightBeam(
  1. ERelativePair position,
  2. EVector2D direction,
  3. ERelative length,
  4. ERelative angle,
  5. ERelative startPositionDist,
  6. EGradient gradient,
  7. double flickerOn,
  8. double flickerOff,
  9. ERelative blur,
  10. ERelative blurPulseRange,
  11. double blurPulseSpeed,
  12. int repainter, {
  13. String name = "",
})

Implementation

ELightBeam(
    this.position,
    this.direction,
    this.length,
    this.angle,
    //width of the starting end of the light beam
    this.startPositionDist,
    this.gradient,
    double flickerOn,
    double flickerOff,
    ERelative blur,
    ERelative blurPulseRange,
    double blurPulseSpeed,
    this.repainter,
    {String name = ""})
    : super(flickerOn, flickerOff, blur, blurPulseRange, blurPulseSpeed,
          name: name) {
  direction.norm();
  update(1, Size(0, 0));
}