Documentation / Node reference / code nodes
code/Fit
Outputs a value remapped from one range to another.
Math
Maps srcMin to destMin and srcMax to destMax, in a straight line. Values outside the source range are not clamped.
Parameters
| Name | Type | What it does |
|---|---|---|
| x | Float | Value to remap. |
| srcMin | Float | Value that maps to destMin. |
| srcMax | Float | Value that maps to destMax. |
| destMin | Float | Output when x equals srcMin. |
| destMax | Float | Output when x equals srcMax. |
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.