setBySize method

void setBySize(
  1. Position size
)

Implementation

void setBySize(Position size) {
  width = size.x;
  height = size.y;
}