Functions
Link copied to clipboard
Encodes a 64-bit floating-point value as two floating-point values that, when converted to 32-bit floating-point and added, approximate the original input. The returned object has high and low properties for the high and low bits, respectively.
Link copied to clipboard
external fun fromCartesian(cartesian: Cartesian3, result: EncodedCartesian3? = definedExternally): EncodedCartesian3
Encodes 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.
Link copied to clipboard
external fun writeElements(cartesian: Cartesian3, cartesianArray: ReadonlyArray<JsDouble>, index: Int)
Encodes the provided cartesian, and writes it to an array with high components followed by low components, i.e. [high.x, high.y, high.z, low.x, low.y, low.z].