API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classInterval

@codexo/exojs / math / stable

A closed scalar interval `[min, max]` used by the SAT collision solver to represent the projection of a shape onto a separating axis. `Interval.temp` provides a shared scratch instance for hot paths. `Interval.zero` is a read-only `[0, 0]` sentinel.

4
props
8
methods
0
events
Import
import { Interval } from '@codexo/exojs'

A closed scalar interval `[min, max]` used by the SAT collision solver to represent the projection of a shape onto a separating axis.

`Interval.temp` provides a shared scratch instance for hot paths. `Interval.zero` is a read-only `[0, 0]` sentinel.

Constructors 1
new(min: number, max: number): Interval
Methods 8
clone(): this
containsInterval(interval: Interval): boolean
copy(interval: Interval): this
destroy(): void
getOverlap(interval: Interval): number
includes(value: number): boolean
overlaps(interval: Interval): boolean
set(min: number, max: number): this
Properties 4
max: number
min: number
zero: Interval
temp: Interval
Source