Add Processing math constants and Processing-specific math functions by pepc84 · Pull Request #165 · processing/libprocessing
Adds Processing math constants and Processing-specific math functions to mewnala.
Math constants (#128): PI, TWO_PI, TAU, HALF_PI, QUARTER_PI, DEG_TO_RAD, RAD_TO_DEG
Processing-specific math functions (#135, #140): sq, constrain, remap, lerp, norm, dist, mag
Note: stdlib duplicates like sin, cos, abs, min, max, floor, ceil, sqrt etc. are intentionally omitted since Python already provides these. Users should use Python's math module instead. map() is renamed to remap() to avoid collision with Python's builtin map() as discussed in #131.
Tested on Arch Linux x11.