moveRight method

void moveRight(
  1. double displacement
)

Implementation

void moveRight(double displacement) {
  position = position.translated(displacement, 0);
}