Vector2.copy constructor

Vector2.copy(
  1. Vector2 other
)

Copy of other.

Implementation

factory Vector2.copy(Vector2 other) => Vector2.zero()..setFrom(other);