Branded numeric type for 32-bit floating point numbers. Represents values that can be stored in a Float32Array.
const toFloat32 = (x: number): Float32 => { const arr = new Float32Array([x]); return arr[0] as Float32;};const shader = (vertices: Float32[]) => { // WebGL shader processing}; Copy
const toFloat32 = (x: number): Float32 => { const arr = new Float32Array([x]); return arr[0] as Float32;};const shader = (vertices: Float32[]) => { // WebGL shader processing};
Branded numeric type for 32-bit floating point numbers. Represents values that can be stored in a Float32Array.