from List
Returns an instance of Vec2 with the given list of coordinates.
If the size of the list of coordinates is different from 2, IllegalArgumentException is thrown.
Since
v2.0.0
Returns an instance of Vec2 with the given list of coordinates.
If the size of the list of coordinates is different from 2, IllegalArgumentException is thrown.