accountForBuff method

void accountForBuff()

Implementation

void accountForBuff() {
  if (buff == 0) {
    return;
  }

  var length =
      (pathArc == 0 || pathArc == null) ? getLength() : getArcLength();

  if (length < 2 * buff) {
    return;
  }

  var buffProportion = buff / length;

  pointwiseBecomePartial(this, buffProportion, 1 - buffProportion);
}