2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
7 #ifndef CAFU_MATH_MISC_HPP_INCLUDED
8 #define CAFU_MATH_MISC_HPP_INCLUDED
11 template<class T
> class Vector3T
;
18 float round(float f
); ///< Rounds the given number to the nearest integer.
19 double round(double d
); ///< Rounds the given number to the nearest integer.
21 /// Rounds all components of the given vector to the nearest integer.
22 template<class T
> Vector3T
<T
> round(const Vector3T
<T
>& v
)
24 return Vector3T
<T
>(round(v
.x
), round(v
.y
), round(v
.z
));