• Sample a VectorGrid at an arbitrary world-space point. Trilinear interpolation per component. Writes into out and returns true when the sample is inside the grid; returns false (leaves out zeroed) when outside.

    out should be a length-3 array — caller-allocated so the inner integration loop can reuse it without GC pressure.

    Parameters

    • grid: VectorGrid
    • x: number
    • y: number
    • z: number
    • out: [number, number, number] | Float32Array<ArrayBufferLike>

    Returns boolean