fit11 expression function

Fits a number to the -1 to 1 range.

Replaced by: hou.hmath

All Usage Examples

See also: fit, fit01, fit10

Usage

fit11(num, newmin, newmax)

Return a number between newmin and newmax that is relative to num in the range between -1 and 1. If the value is outside the -1 to 1 it will be clamped to the new range.

Examples

fit(.3,5,20)=14.75