Conversation
| return (value - start) / (stop - start) | ||
|
|
||
|
|
||
| def remap(value, start1, stop1, start2, stop2): |
There was a problem hiding this comment.
Not a blocker but we could potentially add the optional 6th argument from p5.js's version of the map() function: map(value, start1, stop1, start2, stop2, [withinBounds]) where withinBounds is a boolean which (if true) makes the function constrain the return value to the newly mapped range.
|
Could we explicitly address the tradeoffs before making a decision on From issue #131 it seems like there are at least two possible directions:
Note: we should document this type of decisions on GitHub, since not everyone is on Discord and messages there are not publicly available without an account. |
| @@ -0,0 +1,69 @@ | |||
| """Processing math methods and vector/quaternion types.""" | |||
There was a problem hiding this comment.
| @@ -0,0 +1,69 @@ | |||
| """Processing math methods and vector/quaternion types.""" | |||
| from .mewnala import math as _native_math | |||
| from math import ( | |||
There was a problem hiding this comment.
Do all of these methods behave like their Processing equivalent?
Closes #135
We're going with
remapas noted here: https://discord.com/channels/1076634729618624534/1473643112512491692/1496498755028127905