mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-29 22:35:45 +00:00
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// Created : 2009-10-26
|
|
// Updated : 2009-10-26
|
|
// Licence : This source is under MIT License
|
|
// File : glm/gtx/multiple.hpp
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// Dependency:
|
|
// - GLM core
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef glm_gtx_multiple
|
|
#define glm_gtx_multiple
|
|
|
|
// Dependency:
|
|
#include "../glm.hpp"
|
|
|
|
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
|
|
# pragma message("GLM: GLM_GTX_multiple extension included")
|
|
#endif
|
|
|
|
namespace glm{
|
|
namespace gtx{
|
|
namespace multiple ///< GLM_GTX_multiple: Find the closest number of a number multiple of other number.
|
|
{
|
|
/// \addtogroup gtx_multiple
|
|
/// @{
|
|
|
|
//! Higher Multiple number of Source.
|
|
//! From GLM_GTX_multiple extension.
|
|
template <typename genType>
|
|
genType higherMultiple(
|
|
genType const & Source,
|
|
genType const & Multiple);
|
|
|
|
//! Lower Multiple number of Source.
|
|
//! From GLM_GTX_multiple extension.
|
|
template <typename genType>
|
|
genType lowerMultiple(
|
|
genType const & Source,
|
|
genType const & Multiple);
|
|
|
|
/// @}
|
|
}//namespace multiple
|
|
}//namespace gtx
|
|
}//namespace glm
|
|
|
|
#include "multiple.inl"
|
|
|
|
namespace glm{using namespace gtx::multiple;}
|
|
|
|
#endif//glm_gtx_multiple
|