MCPcopy Create free account
hub / github.com/LMMS/lmms / roundAt

Function roundAt

src/core/AutomatableModel.cpp:293–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291//! @todo: this should be moved into a maths header
292template<class T>
293void roundAt( T& value, const T& where, const T& step_size )
294{
295 if( qAbs<float>( value - where )
296 < typeInfo<float>::minEps() * qAbs<float>( step_size ) )
297 {
298 value = where;
299 }
300}
301
302
303

Callers 2

roundAtMethod · 0.85
fittedValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected