packFloat

fun packFloat(value: Double, result: Cartesian4? = definedExternally): Cartesian4(source)

Packs an arbitrary floating point value to 4 values representable using uint8.

Return

A Cartesian4 representing the float packed to values in x, y, z, and w.

Parameters

value

A floating point number.

result

The Cartesian4 that will contain the packed float.

See also