Companion

object Companion

Functions

Link copied to clipboard
fun fromList(list: List<Float>): Vec4<Float>
fun fromList(list: List<Int>): Vec4<Int>
fun fromList(list: List<Long>): Vec4<Long>

Returns an instance of Vec4 with the given list of coordinates.

fun <T : Number, Comparable<T>> fromList(list: List<T>, type: KClass<T>): Vec4<T>

Returns an instance of Vec4 with the given list of coordinates of given type.