Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api"

Index

Type aliases

BVec2Like

BVec2Like: Tuple<boolean, 2>

BVec3Like

BVec3Like: Tuple<boolean, 3>

BVec4Like

BVec4Like: Tuple<boolean, 4>

BVecOpRoV

BVecOpRoV<T>: Fn<ReadonlyBVec, T>

Type parameters

  • T

BVecOpV

BVecOpV: Fn2<BVec | null, ReadonlyBVec, BVec>

BVecOpVN

BVecOpVN: Fn3<BVec | null, ReadonlyBVec, boolean, BVec>

BVecOpVV

BVecOpVV: Fn3<BVec | null, ReadonlyBVec, ReadonlyBVec, BVec>

CompareOp

CompareOp: Fn3<BVec | null, ReadonlyVec, ReadonlyVec, BVec>

FromBVecOpV

FromBVecOpV: Fn2<BVec | null, ReadonlyBVec, Vec>

MultiBVecOpRoV

MultiBVecOpRoV<T>: MultiVecOpImpl<BVecOpRoV<T>>

Type parameters

  • T

MultiBVecOpV

MultiBVecOpV: MultiVecOpImpl<BVecOpV>

MultiBVecOpVN

MultiBVecOpVN: MultiVecOpImpl<BVecOpVN>

MultiBVecOpVV

MultiBVecOpVV: MultiVecOpImpl<BVecOpVV>

MultiCompareOp

MultiCompareOp: MultiVecOpImpl<CompareOp>

MultiFromBVecOpV

MultiFromBVecOpV: MultiVecOpImpl<FromBVecOpV>

MultiToBVecOpV

MultiToBVecOpV: MultiVecOpImpl<ToBVecOpV>

MultiVecOpImpl

MultiVecOpImpl<T>: T & MultiVecOp<T>

Type parameters

  • T

MultiVecOpN

MultiVecOpN: MultiVecOpImpl<VecOpN>

MultiVecOpNNO

MultiVecOpNNO<T>: MultiVecOpImpl<VecOpNNO<T>>

Type parameters

  • T

MultiVecOpOO

MultiVecOpOO<A, B>: MultiVecOpImpl<VecOpOO<A, B>>

Type parameters

  • A

  • B

MultiVecOpOOO

MultiVecOpOOO<A, B, C>: MultiVecOpImpl<VecOpOOO<A, B, C>>

Type parameters

  • A

  • B

  • C

MultiVecOpRoV

MultiVecOpRoV<T>: MultiVecOpImpl<VecOpRoV<T>>

Type parameters

  • T

MultiVecOpRoVV

MultiVecOpRoVV<T>: MultiVecOpImpl<VecOpRoVV<T>>

Type parameters

  • T

MultiVecOpRoVVO

MultiVecOpRoVVO<T, O>: MultiVecOpImpl<VecOpRoVVO<T, O>>

Type parameters

  • T

  • O

MultiVecOpV

MultiVecOpV: MultiVecOpImpl<VecOpV>

MultiVecOpVN

MultiVecOpVN: MultiVecOpImpl<VecOpVN>

MultiVecOpVNN

MultiVecOpVNN: MultiVecOpImpl<VecOpVNN>

MultiVecOpVNV

MultiVecOpVNV: MultiVecOpImpl<VecOpVNV>

MultiVecOpVO

MultiVecOpVO<T>: MultiVecOpImpl<VecOpVO<T>>

Type parameters

  • T

MultiVecOpVV

MultiVecOpVV: MultiVecOpImpl<VecOpVV>

MultiVecOpVVN

MultiVecOpVVN: MultiVecOpImpl<VecOpVVN>

MultiVecOpVVV

MultiVecOpVVV: MultiVecOpImpl<VecOpVVV>

MultiVecOpVVVVNN

MultiVecOpVVVVNN: MultiVecOpImpl<VecOpVVVVNN>

MultiVecOpVVVVV

MultiVecOpVVVVV: MultiVecOpImpl<VecOpVVVVV>

ReadonlyBVec

ReadonlyBVec: ArrayLikeIterable<boolean>

ReadonlyVec

ReadonlyVec: ArrayLikeIterable<number>

Template

Template: (syms: string[], i?: undefined | number) => string

Type declaration

    • (syms: string[], i?: undefined | number): string
    • Parameters

      • syms: string[]
      • Optional i: undefined | number

      Returns string

ToBVecOpV

ToBVecOpV: Fn2<BVec | null, ReadonlyVec, BVec>

Vec2Like

Vec2Like: Tuple<number, 2> | TypedArray

Vec3Like

Vec3Like: Tuple<number, 3> | TypedArray

Vec4Like

Vec4Like: Tuple<number, 4> | TypedArray

VecOpN

VecOpN: Fn2<Vec | null, number, Vec>

VecOpNNO

VecOpNNO<T>: (out: Vec | null, a: number, b: number, c?: T) => Vec

Type parameters

  • T

Type declaration

    • (out: Vec | null, a: number, b: number, c?: T): Vec
    • Parameters

      • out: Vec | null
      • a: number
      • b: number
      • Optional c: T

      Returns Vec

VecOpOO

VecOpOO<A, B>: (out: Vec | null, a?: A, b?: B) => Vec

Type parameters

  • A

  • B

Type declaration

    • Parameters

      • out: Vec | null
      • Optional a: A
      • Optional b: B

      Returns Vec

VecOpOOO

VecOpOOO<A, B, C>: (out: Vec | null, a?: A, b?: B, c?: C) => Vec

Type parameters

  • A

  • B

  • C

Type declaration

    • Parameters

      • out: Vec | null
      • Optional a: A
      • Optional b: B
      • Optional c: C

      Returns Vec

VecOpRoV

VecOpRoV<T>: Fn<ReadonlyVec, T>

Type parameters

  • T

VecOpRoVV

VecOpRoVV<T>: Fn2<ReadonlyVec, ReadonlyVec, T>

Type parameters

  • T

VecOpRoVVO

VecOpRoVVO<T, O>: (a: ReadonlyVec, b: ReadonlyVec, c?: O) => T

Type parameters

  • T

  • O

Type declaration

VecOpSOO

VecOpSOO<A, B>: (a: Vec | null, opt1?: A, opt2?: B, ia?: undefined | number, sa?: undefined | number) => Vec

Type parameters

  • A

  • B

Type declaration

    • (a: Vec | null, opt1?: A, opt2?: B, ia?: undefined | number, sa?: undefined | number): Vec
    • Parameters

      • a: Vec | null
      • Optional opt1: A
      • Optional opt2: B
      • Optional ia: undefined | number
      • Optional sa: undefined | number

      Returns Vec

VecOpSOOO

VecOpSOOO<A, B, C>: (a: Vec | null, opt1?: A, opt2?: B, opt3?: C, ia?: undefined | number, sa?: undefined | number) => Vec

Type parameters

  • A

  • B

  • C

Type declaration

    • (a: Vec | null, opt1?: A, opt2?: B, opt3?: C, ia?: undefined | number, sa?: undefined | number): Vec
    • Parameters

      • a: Vec | null
      • Optional opt1: A
      • Optional opt2: B
      • Optional opt3: C
      • Optional ia: undefined | number
      • Optional sa: undefined | number

      Returns Vec

VecOpSRoV

VecOpSRoV<T>: (a: ReadonlyVec, ia?: undefined | number, sa?: undefined | number) => T

Type parameters

  • T

Type declaration

    • (a: ReadonlyVec, ia?: undefined | number, sa?: undefined | number): T
    • Parameters

      • a: ReadonlyVec
      • Optional ia: undefined | number
      • Optional sa: undefined | number

      Returns T

VecOpSRoVV

VecOpSRoVV<T>: (a: ReadonlyVec, b: ReadonlyVec, ia?: undefined | number, ib?: undefined | number, sa?: undefined | number, sb?: undefined | number) => T

Type parameters

  • T

Type declaration

    • (a: ReadonlyVec, b: ReadonlyVec, ia?: undefined | number, ib?: undefined | number, sa?: undefined | number, sb?: undefined | number): T
    • Parameters

      • a: ReadonlyVec
      • b: ReadonlyVec
      • Optional ia: undefined | number
      • Optional ib: undefined | number
      • Optional sa: undefined | number
      • Optional sb: undefined | number

      Returns T

VecOpSV

VecOpSV: (out: Vec | null, a: ReadonlyVec, io?: undefined | number, ia?: undefined | number, so?: undefined | number, sa?: undefined | number) => Vec

Type declaration

    • (out: Vec | null, a: ReadonlyVec, io?: undefined | number, ia?: undefined | number, so?: undefined | number, sa?: undefined | number): Vec
    • Parameters

      • out: Vec | null
      • a: ReadonlyVec
      • Optional io: undefined | number
      • Optional ia: undefined | number
      • Optional so: undefined | number
      • Optional sa: undefined | number

      Returns Vec

VecOpSVN

VecOpSVN: (out: Vec | null, a: ReadonlyVec, n: number, io?: undefined | number, ia?: undefined | number, so?: undefined | number, sa?: undefined | number) => Vec

Type declaration

    • (out: Vec | null, a: ReadonlyVec, n: number, io?: undefined | number, ia?: undefined | number, so?: undefined | number, sa?: undefined | number): Vec
    • Parameters

      • out: Vec | null
      • a: ReadonlyVec
      • n: number
      • Optional io: undefined | number
      • Optional ia: undefined | number
      • Optional so: undefined | number
      • Optional sa: undefined | number

      Returns Vec

VecOpSVNV

VecOpSVNV: (out: Vec | null, a: ReadonlyVec, n: number, b: ReadonlyVec, io?: undefined | number, ia?: undefined | number, ib?: undefined | number, so?: undefined | number, sa?: undefined | number, sb?: undefined | number) => Vec

Type declaration

    • (out: Vec | null, a: ReadonlyVec, n: number, b: ReadonlyVec, io?: undefined | number, ia?: undefined | number, ib?: undefined | number, so?: undefined | number, sa?: undefined | number, sb?: undefined | number): Vec
    • Parameters

      • out: Vec | null
      • a: ReadonlyVec
      • n: number
      • b: ReadonlyVec
      • Optional io: undefined | number
      • Optional ia: undefined | number
      • Optional ib: undefined | number
      • Optional so: undefined | number
      • Optional sa: undefined | number
      • Optional sb: undefined | number

      Returns Vec

VecOpSVO

VecOpSVO<T>: (out: Vec | null, a: ReadonlyVec, b?: T, io?: undefined | number, ia?: undefined | number, so?: undefined | number, sa?: undefined | number) => Vec

Type parameters

  • T

Type declaration

    • (out: Vec | null, a: ReadonlyVec, b?: T, io?: undefined | number, ia?: undefined | number, so?: undefined | number, sa?: undefined | number): Vec
    • Parameters

      • out: Vec | null
      • a: ReadonlyVec
      • Optional b: T
      • Optional io: undefined | number
      • Optional ia: undefined | number
      • Optional so: undefined | number
      • Optional sa: undefined | number

      Returns Vec

VecOpSVV

VecOpSVV: (out: Vec | null, a: ReadonlyVec, b: ReadonlyVec, io?: undefined | number, ia?: undefined | number, ib?: undefined | number, so?: undefined | number, sa?: undefined | number, sb?: undefined | number) => Vec

Type declaration

    • (out: Vec | null, a: ReadonlyVec, b: ReadonlyVec, io?: undefined | number, ia?: undefined | number, ib?: undefined | number, so?: undefined | number, sa?: undefined | number, sb?: undefined | number): Vec
    • Parameters

      • out: Vec | null
      • a: ReadonlyVec
      • b: ReadonlyVec
      • Optional io: undefined | number
      • Optional ia: undefined | number
      • Optional ib: undefined | number
      • Optional so: undefined | number
      • Optional sa: undefined | number
      • Optional sb: undefined | number

      Returns Vec

VecOpSVVN

VecOpSVVN: (out: Vec | null, a: ReadonlyVec, b: ReadonlyVec, n: number, io?: undefined | number, ia?: undefined | number, ib?: undefined | number, so?: undefined | number, sa?: undefined | number, sb?: undefined | number) => Vec

Type declaration

    • (out: Vec | null, a: ReadonlyVec, b: ReadonlyVec, n: number, io?: undefined | number, ia?: undefined | number, ib?: undefined | number, so?: undefined | number, sa?: undefined | number, sb?: undefined | number): Vec
    • Parameters

      • out: Vec | null
      • a: ReadonlyVec
      • b: ReadonlyVec
      • n: number
      • Optional io: undefined | number
      • Optional ia: undefined | number
      • Optional ib: undefined | number
      • Optional so: undefined | number
      • Optional sa: undefined | number
      • Optional sb: undefined | number

      Returns Vec

VecOpSVVV

VecOpSVVV: (out: Vec | null, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, io?: undefined | number, ia?: undefined | number, ib?: undefined | number, ic?: undefined | number, so?: undefined | number, sa?: undefined | number, sb?: undefined | number, sc?: undefined | number) => Vec

Type declaration

    • (out: Vec | null, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, io?: undefined | number, ia?: undefined | number, ib?: undefined | number, ic?: undefined | number, so?: undefined | number, sa?: undefined | number, sb?: undefined | number, sc?: undefined | number): Vec
    • Parameters

      • out: Vec | null
      • a: ReadonlyVec
      • b: ReadonlyVec
      • c: ReadonlyVec
      • Optional io: undefined | number
      • Optional ia: undefined | number
      • Optional ib: undefined | number
      • Optional ic: undefined | number
      • Optional so: undefined | number
      • Optional sa: undefined | number
      • Optional sb: undefined | number
      • Optional sc: undefined | number

      Returns Vec

VecOpV

VecOpV: Fn2<Vec | null, ReadonlyVec, Vec>

VecOpVN

VecOpVN: Fn3<Vec | null, ReadonlyVec, number, Vec>

VecOpVNN

VecOpVNN: Fn4<Vec | null, ReadonlyVec, number, number, Vec>

VecOpVNV

VecOpVNV: Fn4<Vec | null, ReadonlyVec, number, ReadonlyVec, Vec>

VecOpVO

VecOpVO<T>: (out: Vec | null, a: ReadonlyVec, b?: T) => Vec

Type parameters

  • T

Type declaration

VecOpVV

VecOpVV: Fn3<Vec | null, ReadonlyVec, ReadonlyVec, Vec>

VecOpVVN

VecOpVVN: Fn4<Vec | null, ReadonlyVec, ReadonlyVec, number, Vec>

VecOpVVV

VecOpVVV: Fn4<Vec | null, ReadonlyVec, ReadonlyVec, ReadonlyVec, Vec>

VecOpVVVVNN

VecOpVVVVNN: Fn7<Vec | null, ReadonlyVec, ReadonlyVec, ReadonlyVec, ReadonlyVec, number, number, Vec>

VecOpVVVVV

VecPair

VecPair: []

Variables

Const MAX2

MAX2: ReadonlyVec = Object.freeze([mx, mx])

Const MAX3

MAX3: ReadonlyVec = Object.freeze([mx, mx, mx])

Const MAX4

MAX4: ReadonlyVec = Object.freeze([mx, mx, mx, mx])

Const MIN2

MIN2: ReadonlyVec = Object.freeze([mi, mi])

Const MIN3

MIN3: ReadonlyVec = Object.freeze([mi, mi, mi])

Const MIN4

MIN4: ReadonlyVec = Object.freeze([mi, mi, mi, mi])

Const ONE2

ONE2: ReadonlyVec = Object.freeze([1, 1])

Const ONE3

ONE3: ReadonlyVec = Object.freeze([1, 1, 1])

Const ONE4

ONE4: ReadonlyVec = Object.freeze([1, 1, 1, 1])

Const W4

W4: ReadonlyVec = Object.freeze([0, 0, 0, 1])

Const X2

X2: ReadonlyVec = Object.freeze([1, 0])

Const X3

X3: ReadonlyVec = Object.freeze([1, 0, 0])

Const X4

X4: ReadonlyVec = Object.freeze([1, 0, 0, 0])

Const Y2

Y2: ReadonlyVec = Object.freeze([0, 1])

Const Y3

Y3: ReadonlyVec = Object.freeze([0, 1, 0])

Const Y4

Y4: ReadonlyVec = Object.freeze([0, 1, 0, 0])

Const Z3

Z3: ReadonlyVec = Object.freeze([0, 0, 1])

Const Z4

Z4: ReadonlyVec = Object.freeze([0, 0, 1, 0])

Const ZERO2

ZERO2: ReadonlyVec = Object.freeze([0, 0])

Const ZERO3

ZERO3: ReadonlyVec = Object.freeze([0, 0, 0])

Const ZERO4

ZERO4: ReadonlyVec = Object.freeze([0, 0, 0, 0])

Const mi

mi: number = -Infinity

Const mx

mx: number = Infinity

Generated using TypeDoc