API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classVectorRange
@codexo/exojs-particles / particles / stable
Uniform random vector with each axis sampled independently in its own `[min, max]` range. Each `sample()` writes into the provided `out` Vector (or an internal scratch instance when `out` is omitted).
4
props
1
methods
0
events
Import
import { VectorRange } from '@codexo/exojs-particles'Uniform random vector with each axis sampled independently in its own `[min, max]` range. Each `sample()` writes into the provided `out` Vector (or an internal scratch instance when `out` is omitted).
Constructors1
new(minX: number, maxX: number, minY: number, maxY: number): VectorRangeMethods1
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…Properties4
maxX: numbermaxY: numberminX: numberminY: numberSource