Skip to content

Geometry.boundsRadius

Summary

Geometry.boundsRadius reads the current boundsRadius value from this Geometry instance. Use it to inspect runtime state without mutating resources.

Syntax

Geometry.boundsRadius: number
const value = geometry.boundsRadius;

Parameters

This API does not take parameters.

Returns

number - Numeric scalar result produced by this operation.

Type Details

// No additional descriptor expansion is required for this signature.

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);

See Also