EncodedCartesian3

open external class EncodedCartesian3(source)

A fixed-point encoding of a Cartesian3 with 64-bit floating-point components, as two Cartesian3 values that, when converted to 32-bit floating-point and added, approximate the original input.

This is used to encode positions in vertex buffers for rendering without jittering artifacts as described in Precisions, Precisions.

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
external object Companion

Properties

Link copied to clipboard
external var high: Cartesian3

The high bits for each component. Bits 0 to 22 store the whole value. Bits 23 to 31 are not used.

Link copied to clipboard
external var low: Cartesian3

The low bits for each component. Bits 7 to 22 store the whole value, and bits 0 to 6 store the fraction. Bits 23 to 31 are not used.