Geometry.boundsRadius¶
Summary¶
Geometry.boundsRadius reads the current boundsRadius value from this Geometry instance. Use it to inspect runtime state without mutating resources.
Syntax¶
Parameters¶
This API does not take parameters.
Returns¶
number - Numeric scalar result produced by this operation.
Type Details¶
Example¶
const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);
const geometry = wgpu.geometry.sphere(1, 24, 16);
const value = geometry.boundsRadius;
console.log(value);