ReadonlycapacityMaximum number of AABBs the store can hold.
ReadonlycentersCPU packed centers (xyz + extra1 per index).
ReadonlycentersTexture containing AABB centers. Created on first access; until then the store keeps CPU arrays only.
ReadonlyhalfCPU packed half extents (xyz + extra2 per index).
ReadonlyhalfTexture containing AABB half extents. Created on first access; until then the store keeps CPU arrays only.
ReadonlyhasTrue after both GPU textures were created by accessing centersTexture or halfExtentsTexture.
ReadonlyindexIndex manager
ReadonlyversionIncrements when AABB CPU data changes (lock, update, resize).
Releases GPU textures owned by the store.
Enqueues an update for a bounding box
Index of the bounding box to update
New bounding box data
Optionalmatrix: Mat4
Optional transformation matrix
Optionalextra1: number
Extra parameter 1
Optionalextra2: number
Extra parameter 2
Gets the bounding box data by its index
Index of the bounding box
Bounding box object to store the result
The bounding box
Gets the transformation matrix data for a bounded box
Index of the bounding box
Float32Array to store the matrix data
Locks a bounding box and returns its index
The bounding box to lock
Optionalmatrix: Mat4
Optional transformation matrix
Optionalextra1: number
Extra parameter 1 (usage depends on implementation)
Optionalextra2: number
Extra parameter 2 (usage depends on implementation)
Index of the locked bounding box
Locks a bounding box using min and max scalar values and returns its index
The array containing the bounding box data (min and max points) in local or world coordinates [minX, maxX, minY, maxY, minZ, maxZ]
The offset in the array where the bounding box data starts
Optionalmatrix: Mat4
Optional transformation matrix
Optionalextra1: number
Extra parameter 1 (usage depends on implementation)
Optionalextra2: number
Extra parameter 2 (usage depends on implementation)
Index of the locked bounding box
Unlocks a bounding box by its index
Index of the bounding box to unlock
Updates the stored data and synchronizes it across all sources when needed, including CPU, GPU, and any other backing representations.
Interface for AABB (Axis-Aligned Bounding Box) store management