|
|
|
@ -66,7 +66,11 @@ namespace Math { |
|
|
|
|
|
|
|
|
|
|
|
template<class T> constexpr T deg(T value); |
|
|
|
template<class T> constexpr T deg(T value); |
|
|
|
template<class T> constexpr T rad(T value); |
|
|
|
template<class T> constexpr T rad(T value); |
|
|
|
template<class T> struct Constants; |
|
|
|
template<class T> class Constants; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Geometry { |
|
|
|
|
|
|
|
template<class> class Rectangle; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Bring debugging facility from Corrade::Utility namespace */ |
|
|
|
/* Bring debugging facility from Corrade::Utility namespace */ |
|
|
|
@ -117,6 +121,12 @@ typedef Math::Matrix4<GLfloat> Matrix4; |
|
|
|
/* Using float instead of GLfloat to not break KDevelop autocompletion */ |
|
|
|
/* Using float instead of GLfloat to not break KDevelop autocompletion */ |
|
|
|
typedef Math::Constants<float> Constants; |
|
|
|
typedef Math::Constants<float> Constants; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Floating-point rectangle */ |
|
|
|
|
|
|
|
typedef Math::Geometry::Rectangle<GLfloat> Rectangle; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Integer rectangle */ |
|
|
|
|
|
|
|
typedef Math::Geometry::Rectangle<GLint> Rectanglei; |
|
|
|
|
|
|
|
|
|
|
|
/* Copying angle converters from Math namespace */ |
|
|
|
/* Copying angle converters from Math namespace */ |
|
|
|
using Math::deg; |
|
|
|
using Math::deg; |
|
|
|
using Math::rad; |
|
|
|
using Math::rad; |
|
|
|
|