resetEndpointsBasedOnTip method

void resetEndpointsBasedOnTip(
  1. ArrowTip tip,
  2. TipSide side
)

Implementation

void resetEndpointsBasedOnTip(
  ArrowTip tip,
  TipSide side,
) {
  if (getLength() == 0) {
    return;
  }

  if (side == TIP_AT_START) {
    putStartAndEndOn(
      tip.getBase(),
      getEnd(),
    );
  } else {
    putStartAndEndOn(
      getStart(),
      tip.getBase(),
    );
  }
}