|
@@ -64,6 +64,13 @@
|
|
Linear mapping of [page:Float x] from range [[page:Float a1], [page:Float a2]] to range [[page:Float b1], [page:Float b2]].
|
|
Linear mapping of [page:Float x] from range [[page:Float a1], [page:Float a2]] to range [[page:Float b1], [page:Float b2]].
|
|
</p>
|
|
</p>
|
|
|
|
|
|
|
|
+ <h3>[method:Float pingpong]( [param:Float x], [param:Float length] )</h3>
|
|
|
|
+ <p>
|
|
|
|
+ [page:Float x] — The value to pingpong.<br />
|
|
|
|
+ [page:Float length] — The positive value the function will pingpong to. Default is 1.<br /><br />
|
|
|
|
+
|
|
|
|
+ Returns a value that alternates between 0 and [param:Float length].</p>
|
|
|
|
+
|
|
<h3>[method:Integer ceilPowerOfTwo]( [param:Number n] )</h3>
|
|
<h3>[method:Integer ceilPowerOfTwo]( [param:Number n] )</h3>
|
|
<p>Returns the smallest power of 2 that is greater than or equal to [page:Number n].</p>
|
|
<p>Returns the smallest power of 2 that is greater than or equal to [page:Number n].</p>
|
|
|
|
|