Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Interpolator

Hierarchy

  • Interpolator

Index

Constructors

constructor

  • new Interpolator(m: number, tension: number): Interpolator

Properties

delta

delta: number

dt

dt: number

m

m: number

m2

m2: number

tension

tension: number

vBin

vBin: Vector3

vDir

vDir: Vector3

vNorm

vNorm: Vector3

vTan

vTan: Vector3

vec1

vec1: Vector3

vec2

vec2: Vector3

Methods

getColor

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

    • iterator: AtomIterator
    • 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
  • Parameters

    • size: number
    • tan: Float32Array
    • norm: Float32Array
    • bin: Float32Array
    • offset: number
    • isCyclic: boolean

    Returns void

getNormalDir

  • getNormalDir(iterDir1: AtomIterator, iterDir2: AtomIterator, tan: Float32Array, norm: Float32Array, bin: Float32Array, offset: number, isCyclic: boolean, shift: boolean): void

getPicking

  • getPicking(iterator: AtomIterator, pickFn: (item: AtomProxy) => number, pick: Float32Array, offset: number, isCyclic: boolean): void

getPosition

  • getPosition(iterator: AtomIterator, array: Float32Array, offset: number, isCyclic: boolean): void

getSize

  • getSize(iterator: AtomIterator, sizeFn: (item: AtomProxy) => number, size: Float32Array, offset: number, isCyclic: boolean): void

getTangent

  • getTangent(iterator: AtomIterator, array: Float32Array, offset: number, isCyclic: boolean): void

Private interpolateColor

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

Private interpolateNormal

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

    • vDir: Vector3
    • tan: Float32Array
    • norm: Float32Array
    • bin: Float32Array
    • offset: number

    Returns void

Private 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

Private interpolatePicking

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

Private interpolatePosition

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

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

    Returns void

Private interpolateSize

Private interpolateTangent

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

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

    Returns void

Private interpolateToArr

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

    • v0: Vector3
    • v1: Vector3
    • v2: Vector3
    • v3: Vector3
    • t: number
    • arr: Float32Array
    • offset: number

    Returns void

Private interpolateToVec

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

    • v0: Vector3
    • v1: Vector3
    • v2: Vector3
    • v3: Vector3
    • t: number
    • vec: Vector3

    Returns void

Private vectorSubdivide

  • vectorSubdivide(interpolationFn: (v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, array: Float32Array, offset: number) => void, iterator: AtomIterator, 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: AtomIterator
    • array: Float32Array
    • offset: number
    • isCyclic: boolean

    Returns void

Generated using TypeDoc