sambaker / awe-core

Artefact Web Extensions JS core
MIT License
2 stars 1 forks source link

Clamp Should Take Min/Max Parameters In Any Order #3

Closed ericcroskeyartefact closed 12 years ago

ericcroskeyartefact commented 12 years ago

In a size animation for example, we might not keep track of whether it is going from big to small, or small to big.

Clamp should clamp a number between two values. For example clamp( myNum, 32, 3 ) should give the same result as clamp( nuNum, 3, 32 )