Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches

◆ translate()

SupportsAbs Cope.misc.translate ( SupportsAbs  value,
SupportsAbs  from_start,
SupportsAbs  from_end,
SupportsAbs  to_start,
SupportsAbs   to_end 
)

Proportionally maps value from being within the from range to the to range.

Definition at line 90 of file misc.py.