MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ normalise()

float MayaFlux::Portal::Forma::Plot::AxisRange::normalise ( float  v) const
inlinenoexcept

Map a value into [0, 1] within this range.

Definition at line 88 of file AxisRange.hpp.

89 {
90 if (max == min)
91 return 0.F;
92 return (v - min) / (max - min);
93 }

References max, and min.

Referenced by to_ndc().

+ Here is the caller graph for this function: