map_range
- compas_fab.utilities.map_range(value, from_min, from_max, to_min, to_max)[source]
Performs a linear interpolation of a value within the range of [from_min, from_max] to another range of [to_min, to_max].
Performs a linear interpolation of a value within the range of [from_min, from_max] to another range of [to_min, to_max].
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev