![]() |
Functions | |
template<typename T > | |
int | mrpt::utils::round (const T value) |
Returns the closer integer (int) to x. More... | |
template<typename T > | |
long | mrpt::utils::round_long (const T value) |
Returns the closer integer (long) to x. More... | |
template<class T > | |
T | mrpt::utils::round_10power (T val, int power10) |
Round a decimal number up to the given 10'th power (eg, to 1000,100,10, and also fractions) power10 means round up to: 1 -> 10, 2 -> 100, 3 -> 1000, ... More... | |
|
inline |
Returns the closer integer (int) to x.
Definition at line 26 of file round.h.
References t().
Referenced by mrpt::maps::CLogOddsGridMapLUT< cellType >::CLogOddsGridMapLUT(), mrpt::utils::CCanvas::drawFeatures(), mrpt::utils::CCanvas::drawFeaturesSimple(), mrpt::utils::CEnhancedMetaFile::ellipseGaussian(), mrpt::utils::CCanvas::ellipseGaussian(), mrpt::vision::TSimpleFeatureTraits< TSimpleFeature >::f2coord(), mrpt::slam::PF_implementation< mrpt::poses::CPose3D, CMonteCarloLocalization3D >::PF_SLAM_implementation_pfAuxiliaryPFStandardAndOptimal(), mrpt::slam::PF_implementation< mrpt::poses::CPose3D, CMonteCarloLocalization3D >::PF_SLAM_implementation_pfStandardProposal(), mrpt::poses::CPose2DGridTemplate< double >::phi2idx(), mrpt::obs::detail::project3DPointsFromDepthImageInto(), mrpt::utils::CDynamicGrid< TRandomFieldCell >::resize(), mrpt::vision::TSimpleFeatureList_templ< TSimpleFeature >::setScale(), mrpt::utils::CDynamicGrid< TRandomFieldCell >::setSize(), mrpt::poses::CPose2DGridTemplate< double >::setSize(), mrpt::gui::CDisplayWindow::showImagesAndMatchedPoints(), mrpt::math::weightedHistogram(), mrpt::math::weightedHistogramLog(), mrpt::poses::CPose2DGridTemplate< double >::x2idx(), and mrpt::poses::CPose2DGridTemplate< double >::y2idx().
T mrpt::utils::round_10power | ( | T | val, |
int | power10 | ||
) |
Round a decimal number up to the given 10'th power (eg, to 1000,100,10, and also fractions) power10 means round up to: 1 -> 10, 2 -> 100, 3 -> 1000, ...
-1 -> 0.1, -2 -> 0.01, ...
Definition at line 72 of file round.h.
References mrpt::utils::round_long(), and t().
|
inline |
Returns the closer integer (long) to x.
Definition at line 48 of file round.h.
References t().
Referenced by mrpt::utils::round_10power().
Page generated by Doxygen 1.8.14 for MRPT 1.4.0 SVN: at Sat Jul 14 16:13:21 UTC 2018 |