Search
Preparing search index...
The search index is not available
catana-backend
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
LongSegmentInterpolator
Class LongSegmentInterpolator
Interpolator for segments of length >= 4
Hierarchy
BaseInterpolator
<
AtomIterator
,
AtomProxy
>
LongSegmentInterpolator
ShortSegmentInterpolator
Implements
SplineInterpolator
<
AtomIterator
,
AtomProxy
>
Index
Constructors
constructor
Properties
delta
dt
subdiv
subdivhalf
tension
v
Bin
v
Dir
v
Norm
v
Tan
vec1
vec2
Methods
get
Color
get
Normal
get
Normal
Dir
get
Picking
get
Position
get
Size
get
Tangent
interpolate
Color
interpolate
Normal
interpolate
Normal
Dir
interpolate
Picking
interpolate
Position
interpolate
Size
interpolate
Tangent
interpolate
ToArr
interpolate
ToVec
vector
Subdivide
Constructors
constructor
new
Long
Segment
Interpolator
(
m
:
number
, tension
:
number
)
:
LongSegmentInterpolator
Parameters
m:
number
tension:
number
Returns
LongSegmentInterpolator
Properties
Protected
delta
delta
:
number
Protected
dt
dt
:
number
Protected
subdiv
subdiv
:
number
Protected
subdivhalf
subdivhalf
:
number
Protected
tension
tension
:
number
Protected
v
Bin
v
Bin
:
Vector3
Protected
v
Dir
v
Dir
:
Vector3
Protected
v
Norm
v
Norm
:
Vector3
Protected
v
Tan
v
Tan
:
Vector3
Protected
vec1
vec1
:
Vector3
Protected
vec2
vec2
:
Vector3
Methods
get
Color
get
Color
(
iterator
:
AtomIterator
|
any
, colFn
:
(
...
arg
:
any
[]
)
=>
void
, col
:
any
, offset
:
number
, isCyclic
:
boolean
)
:
void
override
Parameters
iterator:
AtomIterator
|
any
colFn:
(
...
arg
:
any
[]
)
=>
void
(
...
arg
:
any
[]
)
:
void
Parameters
Rest
...
arg:
any
[]
Returns
void
col:
any
offset:
number
isCyclic:
boolean
Returns
void
get
Normal
get
Normal
(
size
:
number
, tan
:
Float32Array
, norm
:
Float32Array
, bin
:
Float32Array
, offset
:
number
, isCyclic
:
boolean
)
:
void
override
Parameters
size:
number
tan:
Float32Array
norm:
Float32Array
bin:
Float32Array
offset:
number
isCyclic:
boolean
Returns
void
get
Normal
Dir
get
Normal
Dir
(
iterDir1
:
AtomIterator
, iterDir2
:
AtomIterator
, tan
:
Float32Array
, norm
:
Float32Array
, bin
:
Float32Array
, offset
:
number
, isCyclic
:
boolean
, shift
:
boolean
)
:
void
override
Parameters
iterDir1:
AtomIterator
iterDir2:
AtomIterator
tan:
Float32Array
norm:
Float32Array
bin:
Float32Array
offset:
number
isCyclic:
boolean
shift:
boolean
Returns
void
get
Picking
get
Picking
(
iterator
:
AtomIterator
|
any
, pickFn
:
(
item
:
AtomProxy
)
=>
number
, pick
:
Float32Array
, offset
:
number
, isCyclic
:
boolean
)
:
void
override
Parameters
iterator:
AtomIterator
|
any
pickFn:
(
item
:
AtomProxy
)
=>
number
(
item
:
AtomProxy
)
:
number
Parameters
item:
AtomProxy
Returns
number
pick:
Float32Array
offset:
number
isCyclic:
boolean
Returns
void
get
Position
get
Position
(
iterator
:
AtomIterator
|
any
, array
:
Float32Array
, offset
:
number
, isCyclic
:
boolean
)
:
void
override
Parameters
iterator:
AtomIterator
|
any
array:
Float32Array
offset:
number
isCyclic:
boolean
Returns
void
get
Size
get
Size
(
iterator
:
AtomIterator
|
any
, sizeFn
:
(
item
:
AtomProxy
)
=>
number
, size
:
Float32Array
, offset
:
number
, isCyclic
:
boolean
)
:
void
override
Parameters
iterator:
AtomIterator
|
any
sizeFn:
(
item
:
AtomProxy
)
=>
number
(
item
:
AtomProxy
)
:
number
Parameters
item:
AtomProxy
Returns
number
size:
Float32Array
offset:
number
isCyclic:
boolean
Returns
void
get
Tangent
get
Tangent
(
iterator
:
AtomIterator
|
any
, array
:
Float32Array
, offset
:
number
, isCyclic
:
boolean
)
:
void
override
Parameters
iterator:
AtomIterator
|
any
array:
Float32Array
offset:
number
isCyclic:
boolean
Returns
void
Protected
interpolate
Color
interpolate
Color
(
item1
:
AtomProxy
, item2
:
AtomProxy
, colFn
:
(
...
arg
:
any
[]
)
=>
void
, col
:
any
, offset
:
number
)
:
void
Parameters
item1:
AtomProxy
item2:
AtomProxy
colFn:
(
...
arg
:
any
[]
)
=>
void
(
...
arg
:
any
[]
)
:
void
Parameters
Rest
...
arg:
any
[]
Returns
void
col:
any
offset:
number
Returns
void
Protected
interpolate
Normal
interpolate
Normal
(
vDir
:
Vector3
, tan
:
Float32Array
, norm
:
Float32Array
, bin
:
Float32Array
, offset
:
number
)
:
void
Parameters
vDir:
Vector3
tan:
Float32Array
norm:
Float32Array
bin:
Float32Array
offset:
number
Returns
void
Protected
interpolate
Normal
Dir
interpolate
Normal
Dir
(
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
interpolate
Picking
interpolate
Picking
(
item1
:
AtomProxy
, item2
:
AtomProxy
, pickFn
:
(
item
:
AtomProxy
)
=>
number
, pick
:
Float32Array
, offset
:
number
)
:
void
Parameters
item1:
AtomProxy
item2:
AtomProxy
pickFn:
(
item
:
AtomProxy
)
=>
number
(
item
:
AtomProxy
)
:
number
Parameters
item:
AtomProxy
Returns
number
pick:
Float32Array
offset:
number
Returns
void
Protected
interpolate
Position
interpolate
Position
(
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
Protected
interpolate
Size
interpolate
Size
(
item1
:
AtomProxy
, item2
:
AtomProxy
, sizeFn
:
(
item
:
AtomProxy
)
=>
number
, size
:
Float32Array
, offset
:
number
)
:
void
Parameters
item1:
AtomProxy
item2:
AtomProxy
sizeFn:
(
item
:
AtomProxy
)
=>
number
(
item
:
AtomProxy
)
:
number
Parameters
item:
AtomProxy
Returns
number
size:
Float32Array
offset:
number
Returns
void
Protected
interpolate
Tangent
interpolate
Tangent
(
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
Protected
interpolate
ToArr
interpolate
ToArr
(
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
Protected
interpolate
ToVec
interpolate
ToVec
(
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
Protected
vector
Subdivide
vector
Subdivide
(
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
Globals
Long
Segment
Interpolator
constructor
delta
dt
subdiv
subdivhalf
tension
v
Bin
v
Dir
v
Norm
v
Tan
vec1
vec2
get
Color
get
Normal
get
Normal
Dir
get
Picking
get
Position
get
Size
get
Tangent
interpolate
Color
interpolate
Normal
interpolate
Normal
Dir
interpolate
Picking
interpolate
Position
interpolate
Size
interpolate
Tangent
interpolate
ToArr
interpolate
ToVec
vector
Subdivide
Generated using
TypeDoc
Interpolator for segments of length >= 4