Content


NTL
Core
Round

Round



Round floating point value to integer.

For float and double arguments use ntl::Round function.

constexpr Point Round(const PointF &a); // Convert to integer point rounding elements
constexpr PointL Round(const PointD &a); // Convert to integer point rounding elements
constexpr Rect Round(const RectF &a); // Convert to integer rectangle rounding elements
constexpr RectL Round(const RectD &a); // Convert to integer rectangle rounding elements
Namespace: nitisa
Include: Nitisa/Math/Point.h (For PointF arguments)
Nitisa/Math/PointL.h (For PointD arguments)
Nitisa/Math/Rect.h (For RectF arguments)
Nitisa/Math/RectL.h (For RectD arguments)