moveTop method

void moveTop(
  1. double displacement
)

Implementation

void moveTop(double displacement) {
  position = position.translated(0, displacement * -1);
}