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.
Constructors1
new(minX: number, maxX: number, minY: number, maxY: number, mode: "edge" | "volume"): BoxAreaMethods1
sample(out: VectorConcrete mutable 2D vector with full AbstractVector arithmetic and Collidable collision support (treated as a point collider). `Vector.temp` provides a shared…): VectorConcrete mutable 2D vector with full AbstractVector arithmetic and Collidable collision support (treated as a point collider). `Vector.temp` provides a shared…Properties5
maxX: numbermaxY: numberminX: numberminY: numbermode: "edge" | "volume"Source