ABRG-Models / morphologica

A library of supporting code for numerical modelling (JSON config, HDF5 data, Modern OpenGL visualization)
https://abrg-models.github.io/morphologica/
Apache License 2.0
255 stars 29 forks source link

Change name of `Scale::compute_autoscale()` #237

Closed sebjameswml closed 3 weeks ago

sebjameswml commented 3 weeks ago

Would like

Scale<float>::scale_for_range (0.0f, 10.0f);
morph::range<float> r1(0.0f, 10.0f);
Scale<float>::scale_for_range (r1);
sebjameswml commented 3 weeks ago

Can simply add these functions without removing compute_autoscale() for the time being.

sebjameswml commented 3 weeks ago

or maybe

Scale<float>::set_input_range (0.0f, 10.0f);
morph::range<float> r1(0.0f, 10.0f);
Scale<float>::set_input_range (r1);
Scale<float>::set_input_range (morph::range<float>(0.0f, 10.0f));