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

◆ to_ndc()

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

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

Definition at line 96 of file AxisRange.hpp.

97 {
98 return normalise(v) * 2.F - 1.F;
99 }
float normalise(float v) const noexcept
Map a value into [0, 1] within this range.
Definition AxisRange.hpp:88

References normalise().

Referenced by MayaFlux::Portal::Forma::Plot::WaveformBuilder::done(), MayaFlux::Portal::Forma::Plot::ScatterBuilder::done(), MayaFlux::Portal::Forma::Plot::BarsBuilder::done(), and MayaFlux::Portal::Forma::Plot::FilledWaveformBuilder::done().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: