MCPcopy Create free account
hub / github.com/FASTSHIFT/WatchX / map

Function map

WatchX/ArduinoAPI/wirish_math.h:81–85  ·  view source on GitHub ↗

* @brief Remap a number from one range to another. * * That is, a value equal to fromStart gets mapped to toStart, a value * of fromEnd to toEnd, and other values are mapped proportionately. * * Does not constrain value to lie within [fromStart, fromEnd]. * * If a "start" value is larger than its corresponding "end", the * ranges are reversed, so map(n, 1, 10, 10, 1) would reverse the * r

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected