DriftCapture · interface

Volume

A field of samples over a box of the world, x fastest, then y, then z.

Explained in DriftCapture.

interface Volume
import type { Volume } from '@driftengine/capture';

Properties

NameTypeDescription
dimsreadonlyreadonly [number, number, number]
originreadonlyreadonly [number, number, number]Where the first sample sits, in the capture's world.
spacingreadonlynumberMetres between samples, the same on every axis.
distancereadonlyFloat32ArrayTruncated signed distance in metres, negative inside.
weightreadonlyFloat32ArrayHow much evidence each sample has; zero where no view ever saw it.