API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classBoxArea

@codexo/exojs-particles / particles / stable

Random point inside an axis-aligned box. With `mode: 'edge'` the result lies on the perimeter (uniform along all four edges combined); with `mode: 'volume'` (default) it's uniformly distributed across the area.

5
props
1
methods
0
events
Import
import { BoxArea } from '@codexo/exojs-particles'

Random point inside an axis-aligned box. With `mode: 'edge'` the result lies on the perimeter (uniform along all four edges combined); with `mode: 'volume'` (default) it's uniformly distributed across the area.

Constructors1
new(minX: number, maxX: number, minY: number, maxY: number, mode: "edge" | "volume"): BoxArea
Methods1
Properties5
maxX: number
maxY: number
minX: number
minY: number
mode: "edge" | "volume"
Source