Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 4 and Version 5 of code/doc/Math


Ignore:
Timestamp:
Sep 22, 2008, 7:14:39 PM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Math

    v4 v5  
    3232  * Example: mod(8, 10) = 8, mod(14, 10) = 4, mod(-8, 10) = 2, mod(-14, 10) = 6
    3333
    34  * '''interpolate('''''time''''', '''''start''''', '''''end''''')''': Interpolates between two values for a time between 0 and 1.
    35  * '''interpolateSmooth('''''time''''', '''''start''''', '''''end''''')''': Interpolates smoothly between two values for a time between 0 and 1. The function starts slowly, increases faster and stops slowly again.
    36 
    3734 * '''rnd()''': Returns a random number between 0 and almost 1: 0 <= rnd < 1.
    3835 * '''rnd('''''max''''')''': Returns a random number between 0 and almost max: 0 <= rnd < max.
    3936 * '''rnd('''''min''''', '''''max''''')''': Returns a random number between min and almost max: min <= rnd < max.
     37
     38 * '''interpolate('''''time''''', '''''start''''', '''''end''''')''': Interpolates between two values for a time between 0 and 1.
     39   * Example: [[Image(interpolation.png)]]
     40 * '''interpolateSmooth('''''time''''', '''''start''''', '''''end''''')''': Interpolates smoothly between two values for a time between 0 and 1. The function starts slowly, increases faster and stops slowly again.
     41   * Example: [[Image(interpolation_smooth.png)]]
     42