Difference between revisions of "Remap (LogiX node)"
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
== Examples == <!--T:4--> | == Examples == <!--T:4--> | ||
An input interval of [-1, 1], an output interval of [0, 1], and an input value of -0.5 would result in the output 0.25. This is because -0.5 represents a fourth of the difference between -1 and 1 and is thus remapped to a fourth of the difference between 0 and 1. | An input interval of [-1, 1], an output interval of [0, 1], and an input value of -0.5 would result in the output 0.25. This is because -0.5 represents a fourth of the difference between -1 and 1 and is thus remapped to a fourth of the difference between 0 and 1. | ||
+ | |||
+ | === Temperature conversion example === | ||
+ | [[file:FtoC Temp convert.png|900px]] | ||
== Node Menu == <!--T:5--> | == Node Menu == <!--T:5--> |
Latest revision as of 02:00, 26 June 2023
Remap | ||
---|---|---|
Inputs | ||
Float | InMin | |
Float | InMax | |
Float | OutMin | |
Float | OutMax | |
Float | Value | |
Outputs | ||
Float | * |
The Remap node linearly maps one numerical interval to another interval.
Usage
Examples
An input interval of [-1, 1], an output interval of [0, 1], and an input value of -0.5 would result in the output 0.25. This is because -0.5 represents a fourth of the difference between -1 and 1 and is thus remapped to a fourth of the difference between 0 and 1.