moveLeft method

void moveLeft(
  1. double displacement
)

Implementation

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