17 return std::roundf(f * p) * r ;
23 return std::truncf(f * p) * r;
Contains definitions for the HF::SpatialStructures namespace.
float roundhf(float f, float p=FLOAT_PRECISION, float r=ROUNDING_PRECISION)
Round a float to the nearest precision defined globally. The global values can be overridden with opt...
float trunchf(float f, float p=1000.0, float r=0.001)
Truncate a float to the nearest precision defined globally. The global values can be overridden with ...