Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LongSegmentInterpolator

Interpolator for segments of length >= 4

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: AtomIterator | any, colFn: (...arg: any[]) => void, col: any, offset: number, isCyclic: boolean): void

getNormal

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

getNormalDir

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

getPicking

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

getPosition

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

getSize

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

getTangent

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

Protected interpolateColor

  • interpolateColor(item1: AtomProxy, item2: AtomProxy, colFn: (...arg: any[]) => void, col: any, offset: number): 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

Protected interpolatePicking

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

Protected interpolatePosition

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

Protected interpolateSize

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 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
  • override

    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