Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseInterpolator<TIter, TProxy>

Type parameters

  • TIter

  • TProxy

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected delta

delta: number

Protected dt

dt: number

Protected subdiv

subdiv: number

Protected subdivhalf

subdivhalf: number

Protected tension

tension: number

Protected vBin

vBin: Vector3

Protected vDir

vDir: Vector3

Protected vNorm

vNorm: Vector3

Protected vTan

vTan: Vector3

Protected vec1

vec1: Vector3

Protected vec2

vec2: Vector3

Methods

getColor

  • getColor(iterator: TIter | any, colFn: (...arg: any[]) => void, col: any, offset: number, isCyclic: boolean): void
  • override

    Parameters

    • iterator: TIter | any
    • colFn: (...arg: any[]) => void
        • (...arg: any[]): void
        • Parameters

          • Rest ...arg: any[]

          Returns void

    • col: any
    • offset: number
    • isCyclic: boolean

    Returns void

getNormal

  • getNormal(size: number, tan: Float32Array, norm: Float32Array, bin: Float32Array, offset: number, isCyclic: boolean): void

getPicking

  • getPicking(iterator: TIter | any, pickFn: (item: TProxy) => number, pick: Float32Array, offset: number, isCyclic: boolean): void
  • override

    Parameters

    • iterator: TIter | any
    • pickFn: (item: TProxy) => number
        • (item: TProxy): number
        • Parameters

          • item: TProxy

          Returns number

    • pick: Float32Array
    • offset: number
    • isCyclic: boolean

    Returns void

getPosition

  • getPosition(iterator: TIter | any, array: Float32Array, offset: number, isCyclic: boolean): void

getSize

  • getSize(iterator: TIter | any, sizeFn: (item: TProxy) => number, size: Float32Array, offset: number, isCyclic: boolean): void
  • override

    Parameters

    • iterator: TIter | any
    • sizeFn: (item: TProxy) => number
        • (item: TProxy): number
        • Parameters

          • item: TProxy

          Returns number

    • size: Float32Array
    • offset: number
    • isCyclic: boolean

    Returns void

getTangent

  • getTangent(iterator: TIter | any, array: Float32Array, offset: number, isCyclic: boolean): void

Protected interpolateColor

  • interpolateColor(item1: TProxy, item2: TProxy, colFn: (...arg: any[]) => void, col: any, offset: number): void
  • Parameters

    • item1: TProxy
    • item2: TProxy
    • colFn: (...arg: any[]) => void
        • (...arg: any[]): void
        • Parameters

          • Rest ...arg: any[]

          Returns void

    • col: any
    • offset: number

    Returns void

Protected interpolateNormal

  • interpolateNormal(vDir: Vector3, tan: Float32Array, norm: Float32Array, bin: Float32Array, offset: number): void

Protected interpolateNormalDir

  • interpolateNormalDir(u0: Vector3, u1: Vector3, u2: Vector3, u3: Vector3, v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, tan: Float32Array, norm: Float32Array, bin: Float32Array, offset: number, shift: boolean): void
  • Parameters

    • u0: Vector3
    • u1: Vector3
    • u2: Vector3
    • u3: Vector3
    • v0: Vector3
    • v1: Vector3
    • v2: Vector3
    • v3: Vector3
    • tan: Float32Array
    • norm: Float32Array
    • bin: Float32Array
    • offset: number
    • shift: boolean

    Returns void

Protected interpolatePicking

  • interpolatePicking(item1: TProxy, item2: TProxy, pickFn: (item: TProxy) => number, pick: Float32Array, offset: number): void
  • Parameters

    • item1: TProxy
    • item2: TProxy
    • pickFn: (item: TProxy) => number
        • (item: TProxy): number
        • Parameters

          • item: TProxy

          Returns number

    • pick: Float32Array
    • offset: number

    Returns void

Protected interpolatePosition

  • interpolatePosition(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, pos: Float32Array, offset: number): void

Protected interpolateSize

  • interpolateSize(item1: TProxy, item2: TProxy, sizeFn: (item: TProxy) => number, size: Float32Array, offset: number): void
  • Parameters

    • item1: TProxy
    • item2: TProxy
    • sizeFn: (item: TProxy) => number
        • (item: TProxy): number
        • Parameters

          • item: TProxy

          Returns number

    • size: Float32Array
    • offset: number

    Returns void

Protected interpolateTangent

  • interpolateTangent(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, tan: Float32Array, offset: number): void

Protected interpolateToArr

  • interpolateToArr(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, t: number, arr: Float32Array, offset: number): void

Protected interpolateToVec

  • interpolateToVec(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, t: number, vec: Vector3): void

Protected Abstract vectorSubdivide

  • vectorSubdivide(interpolationFn: (v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, array: Float32Array, offset: number) => void, iterator: TIter, array: Float32Array, offset: number, isCyclic: boolean): void
  • Parameters

    • interpolationFn: (v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, array: Float32Array, offset: number) => void
        • (v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, array: Float32Array, offset: number): void
        • Parameters

          • v0: Vector3
          • v1: Vector3
          • v2: Vector3
          • v3: Vector3
          • array: Float32Array
          • offset: number

          Returns void

    • iterator: TIter
    • array: Float32Array
    • offset: number
    • isCyclic: boolean

    Returns void

Generated using TypeDoc