translate method

void translate(
  1. double translateX,
  2. double translateY
)

Method used to translate component

Implementation

void translate(double translateX, double translateY) {
  position.add(Vector2(translateX, translateY));
}