Namespace: coder

og.math.coder

Methods

staticog.math.coder.decodeFloatFromRGBA(rgba){number}

Decode RGBA vector to 32 bit float value.
Name Type Description
rgba og.math.Vector4 RGBA encoded 32 bit float value.
Returns:
Type Description
number

staticog.math.coder.doubleToTwoFloats(value){Array.<number, number>}

Separate 63 bit value to two 32 bit float values.
Name Type Description
value number Double type value.
Returns:
Type Description
Array.<number, number>

staticog.math.coder.encodeFloatToRGBA(f){og.math.Vector4}

Encode 32 bit float value to the RGBA vector.
Name Type Description
f nummer 32 bit float value.
Returns:
Type Description
og.math.Vector4