API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classCircleArea
Random point on or inside a circle of radius `radius`, centred at `(centerX, centerY)`. With `mode: 'edge'` the result lies exactly on the circumference; with `mode: 'volume'` (default) it lies anywhere in the disk, with uniform area density (sqrt-of-random-radius distribution). Use as a spawn-position distribution for circular emitters.
import { CircleArea } from '@codexo/exojs-particles'Random point on or inside a circle of radius `radius`, centred at `(centerX, centerY)`. With `mode: 'edge'` the result lies exactly on the circumference; with `mode: 'volume'` (default) it lies anywhere in the disk, with uniform area density (sqrt-of-random-radius distribution).
Use as a spawn-position distribution for circular emitters.
new(centerX: number, centerY: number, radius: number, mode: "edge" | "volume"): CircleAreasample(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…centerX: numbercenterY: numbermode: "edge" | "volume"radius: number