Returns an instance of Vec3 with the given list of coordinates.
If the size of the list of coordinates is different than 3, IllegalArgumentException is thrown.