Class AnimeJConv
Object
|
+--AnimeJConv
- class
AnimeJConv
Conversion functions used by interpolators. They interpolate
a range of values using a parameter between 0.0 and 1.0 which
represents a time fraction.
Defined in AnimeJ.js
Method Summary |
<static> Object
|
Discrete(<Object> from, <Object> to, <float> v)
Interpolates between two objects in a discrete fashion: if v is
less than 0.5 the first is returned the second otherwise.
|
<static> float
|
Float(<float> from, <float> to, <float> v)
Interpolates a single float value
|
<static> Array
|
FloatList(<Array> from, <Array> to, <float> v)
Interpolates an array of floats
|
<static> int
|
Int(<int> from, <int> to, <float> v)
Interpolates a single integer value
|
<static> Array
|
IntList(<Array> from, <Array> to, <float> v)
Interpolates an array of integers
|
AnimeJConv
AnimeJConv()
Discrete
<static> Object Discrete(<Object> from, <Object> to, <float> v)
Interpolates between two objects in a discrete fashion: if v is
less than 0.5 the first is returned the second otherwise.
Parameters:
v
- A fraction between 0.0 and 1.0
Float
<static> float Float(<float> from, <float> to, <float> v)
Interpolates a single float value
Parameters:
v
- A fraction between 0.0 and 1.0
FloatList
<static> Array FloatList(<Array> from, <Array> to, <float> v)
Interpolates an array of floats
Parameters:
v
- A fraction between 0.0 and 1.0
Int
<static> int Int(<int> from, <int> to, <float> v)
Interpolates a single integer value
Parameters:
v
- A fraction between 0.0 and 1.0
IntList
<static> Array IntList(<Array> from, <Array> to, <float> v)
Interpolates an array of integers
Parameters:
v
- A fraction between 0.0 and 1.0
Documentation generated by
JSDoc on Sat Nov 29 18:20:44 2008