compressTextureCoordinates

external fun compressTextureCoordinates(textureCoordinates: Cartesian2): Double(source)

Pack texture coordinates into a single float. The texture coordinates will only preserve 12 bits of precision.

Return

The packed texture coordinates.

Parameters

textureCoordinates

The texture coordinates to compress. Both coordinates must be in the range 0.0-1.0.

See also