toArray

open fun toArray(result: FloatArray, offset: Int): FloatArray

Copies this vector's components to the specified single precision array. The result is compatible with GLSL uniform vectors, and can be passed to the function glUniform2fv.

Return

the result argument set to this vector's components

Parameters

result

a pre-allocated array of length 2 in which to return the components