toFloatArray

fun Array<out Float>.toFloatArray(): FloatArray

Returns an array of Float containing all of the elements of this generic array.

fun Collection<Float>.toFloatArray(): FloatArray

Returns an array of Float containing all of the elements of this collection.