Changes between Version 4 and Version 5 of code/doc/Math
- Timestamp:
- Sep 22, 2008, 7:14:39 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/Math
v4 v5 32 32 * Example: mod(8, 10) = 8, mod(14, 10) = 4, mod(-8, 10) = 2, mod(-14, 10) = 6 33 33 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 37 34 * '''rnd()''': Returns a random number between 0 and almost 1: 0 <= rnd < 1. 38 35 * '''rnd('''''max''''')''': Returns a random number between 0 and almost max: 0 <= rnd < max. 39 36 * '''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