fromList

fun fromList(list: List<Float>): Vec3

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.