Skip to content

Vibe coding a plugin? Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

BoundingBox

An immutable axis-aligned box, in the coordinates of the context it was measured in.

new BoundingBox(min, max): BoundingBox

Creates the box between two corners; min can’t exceed max along any axis.

Point3dLike

Point3dLike

BoundingBox

readonly center: Point3d


readonly depth: number

Extent along Y, in meters.


readonly diagonal: number

Distance between the corners, in meters.


readonly height: number

Extent along Z, in meters.


readonly max: Point3d

The corner with the largest coordinates.


readonly min: Point3d

The corner with the smallest coordinates.


readonly width: number

Extent along X, in meters.

contains(point): boolean

Whether the point lies inside or on the box.

Point3dLike

boolean


toJSON(): object

JSON.stringify writes { min: [x, y, z], max: [x, y, z] }.

object

max: [number, number, number]

min: [number, number, number]