setFrom method

void setFrom(
  1. Vec2 other
)

Implementation

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