UNPKG

@openhps/core

Version:

Open Hybrid Positioning System - Core component

16 lines (14 loc) 827 B
/** * Returns a half precision floating point value from the given single precision floating point value. * @param val A single precision floating point value. * @see {@link https://threejs.org/docs/index.html#api/en/extras/DataUtils | Official Documentation} * @see {@link https://github.com/mrdoob/three.js/blob/master/src/extras/DataUtils.js | Source} */ export function toHalfFloat(val: number): number; /** * Returns a single precision floating point value from the given half precision floating point value. * @param val A half precision floating point value. * @see {@link https://threejs.org/docs/index.html#api/en/extras/DataUtils | Official Documentation} * @see {@link https://github.com/mrdoob/three.js/blob/master/src/extras/DataUtils.js | Source} */ export function fromHalfFloat(val: number): number;