Vector2.copy constructor

Vector2.copy(Vector2 other)

Copy of other.

Implementation

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