API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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.
Constructors 1
new(minX: number, maxX: number, minY: number, maxY: number, mode: "volume" | "edge"): BoxArea Methods 1
sample(out: Vector): Vector Properties 5
maxX: number maxY: number minX: number minY: number mode: "volume" | "edge" Source