encode
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.
The fixed-point encoding follows Precisions, Precisions.
const value = 1234567.1234567;
const splitValue = EncodedCartesian3.encode(value);Content copied to clipboard
Return
The modified result parameter or a new instance if one was not provided.
Parameters
value
The floating-point value to encode.
result
The object onto which to store the result.