Fits a value to the 0-1 range.
Usage
fit01(num, newmin, newmax)
Returns a number between newmin and newmax that is relative to num in the
range between 0 and 1. If the value is outside the 0 to 1 it will be clamped to
the new range.
Examples
fit01(.3,5,20)=9.5
댓글 없음:
댓글 쓰기