Skip to content

Instantly share code, notes, and snippets.

@nkint
Created October 28, 2022 08:34
Show Gist options
  • Save nkint/077b6deccdf61351f016dee5b83a2021 to your computer and use it in GitHub Desktop.
Save nkint/077b6deccdf61351f016dee5b83a2021 to your computer and use it in GitHub Desktop.
map fit mapLinear implementations
umbrella:
https://github.com/thi-ng/umbrella/blob/develop/packages/math/src/fit.ts
arduino:
https://github.com/arduino/ArduinoCore-avr/blob/master/cores/arduino/WMath.cpp#L52
p5:
https://github.com/processing/p5.js/blob/main/src/math/calculation.js#L448
openframework:
https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworks/math/ofMath.cpp#L79
three.js
https://github.com/mrdoob/three.js/blob/dev/src/math/MathUtils.js#L41
@nkint
Copy link
Author

nkint commented Oct 28, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment