API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
namespaceSweep
@codexo/exojs / math / stable
Swept (continuous) collision queries, grouped as a namespace so the public API carries no loose `sweep*` functions. The underlying functions stay module exports for internal use; only this facade is in the public barrel.
6
props
0
methods
0
events
Import
import { Sweep } from '@codexo/exojs'Swept (continuous) collision queries, grouped as a namespace so the public API carries no loose `sweep*` functions. The underlying functions stay module exports for internal use; only this facade is in the public barrel.
Properties6
circleAgainst: (moving: CircleLikeStructural type for any object that describes a circle via a centre point and radius., deltaX: number, deltaY: number, targets: readonly CircleLikeStructural type for any object that describes a circle via a centre point and radius.[]) => SweptHitResult of a swept-collision query. The moving shape's reference point is at `(x, y)` at impact, having travelled fraction `t` ∈ [0..1] of the requested move (w… | nullcircleVsCircle: (moving: CircleLikeStructural type for any object that describes a circle via a centre point and radius., deltaX: number, deltaY: number, target: CircleLikeStructural type for any object that describes a circle via a centre point and radius.) => SweptHitResult of a swept-collision query. The moving shape's reference point is at `(x, y)` at impact, having travelled fraction `t` ∈ [0..1] of the requested move (w… | nullcircleVsRectangle: (moving: CircleLikeStructural type for any object that describes a circle via a centre point and radius., deltaX: number, deltaY: number, target: RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f…) => SweptHitResult of a swept-collision query. The moving shape's reference point is at `(x, y)` at impact, having travelled fraction `t` ∈ [0..1] of the requested move (w… | nullrectangle: (moving: RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f…, deltaX: number, deltaY: number, target: RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f…) => SweptHitResult of a swept-collision query. The moving shape's reference point is at `(x, y)` at impact, having travelled fraction `t` ∈ [0..1] of the requested move (w… | nullrectangleAgainst: (moving: RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f…, deltaX: number, deltaY: number, targets: readonly RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f…[]) => SweptHitResult of a swept-collision query. The moving shape's reference point is at `(x, y)` at impact, having travelled fraction `t` ∈ [0..1] of the requested move (w… | nullsubstep: (fromX: number, fromY: number, deltaX: number, deltaY: number, maxStepSize: number) => IterableIterator<{ t: number; x: number; y: number }>Source