moveUp method

void moveUp(
  1. double displacement
)

Implementation

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