setFrom method

void setFrom(
  1. Vector2 other
)

Implementation

void setFrom(Vector2 other) {
  x = other.x;
  y = other.y;
}