MeshLib C++ Docs
Loading...
Searching...
No Matches
MRRound.h File Reference
#include "MRBitCast.h"
#include <cmath>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).

Functions

int MR::roundToInt (double x) noexcept
 the same as (int)std::round( x ) for any x in int range (halves are rounded away from zero), but without a library call on any compiler
int MR::roundToInt (float x) noexcept
 the same as (int)std::round( x ) for any x in int range (halves are rounded away from zero), but without a library call on any compiler