Options
All
  • Public
  • Public/Protected
  • All
Menu

space3

Index

Variables

Const epsilon

epsilon: number = Number.EPSILON

Numeric precision limit.

Const epsilon2

epsilon2: number = epsilon * epsilon

Functions

Const abs

Const add

Const berp

  • Bezier's interpolation of the vectors, s = 0 gets the first vector, s = 1 gets the last vector

    Parameters

    • s: number
    • Rest ...vectors: Vector[]

    Returns Vector

Const ceil

Const comb

  • linear combination of vectors in array s0 * u0 + s1 * u1 + ...

    Parameters

    • scalars: number[]
    • Rest ...vectors: Vector[]

    Returns Vector

Const der

  • 1-st order derivative of the vectors [(u1 - u0) / ds, (u2 - u1) / ds, ...]

    Parameters

    • ds: number
    • Rest ...vectors: Vector[]

    Returns Vector[]

Const der1

  • discrete derivative of the given vectors [u1 - u0, u2 - u1, ...]

    Parameters

    Returns Vector[]

Const dist

Const div

  • sum of scaled vectors u0 / s + u1 / s + ...

    Parameters

    • s: number
    • Rest ...vectors: Vector[]

    Returns Vector

Const dot

Const equal1

  • equal1(...vectors: Vector[]): boolean

Const equal2

  • equal2(...vectors: Vector[]): boolean

Const exact

  • exact(...vectors: Vector[]): boolean

Const floor

Const gaussian

  • gaussian(mu: number, sigma: number): number
  • Parameters

    • mu: number

      mean of the number

    • sigma: number

      standard deviation of the number

    Returns number

Const herp

  • Hermite's interpolation of the vectors, s = 0 gets the first vector, s = 1 gets the last vector

    Parameters

    • s: number
    • Rest ...vectors: Vector[]

    Returns Vector

Const lerp

  • linear interpolation of the vectors, s = 0 gets the first vector, s = 1 gets the last vector

    Parameters

    • s: number
    • Rest ...vectors: Vector[]

    Returns Vector

Const mag

Const mag2

  • mag2(vector: Vector): number

Const max

Const min

Const mul

  • sum of scaled vectors s * u0 + s * u1 + ...

    Parameters

    • s: number
    • Rest ...vectors: Vector[]

    Returns Vector

Const neg

Const norm

  • sum of normalized vectors u0 / ||u0|| + u1 / ||u1|| + ...

    Parameters

    Returns Vector

Const prod

Const round

Const sub

  • subtraction between first vector and other ones u0 - u1 - ...

    Parameters

    Returns Vector

Const trunc

Generated using TypeDoc