Cleanup extensions
This commit is contained in:
parent
5b75955336
commit
8045560a26
@ -20,7 +20,7 @@ namespace glm
|
|||||||
genType const & degrees
|
genType const & degrees
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(detail::type<genType>::is_float);
|
GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'radians' only accept floating-point input");
|
||||||
|
|
||||||
const genType pi = genType(3.1415926535897932384626433832795);
|
const genType pi = genType(3.1415926535897932384626433832795);
|
||||||
return degrees * (pi / genType(180));
|
return degrees * (pi / genType(180));
|
||||||
@ -69,7 +69,7 @@ namespace glm
|
|||||||
genType const & radians
|
genType const & radians
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(detail::type<genType>::is_float);
|
GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'degrees' only accept floating-point input");
|
||||||
|
|
||||||
const genType pi = genType(3.1415926535897932384626433832795);
|
const genType pi = genType(3.1415926535897932384626433832795);
|
||||||
return radians * (genType(180) / pi);
|
return radians * (genType(180) / pi);
|
||||||
@ -118,7 +118,7 @@ namespace glm
|
|||||||
genType const & angle
|
genType const & angle
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(detail::type<genType>::is_float);
|
GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'sin' only accept floating-point input");
|
||||||
|
|
||||||
return ::std::sin(angle);
|
return ::std::sin(angle);
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ namespace glm
|
|||||||
template <typename genType>
|
template <typename genType>
|
||||||
inline genType cos(genType const & angle)
|
inline genType cos(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(detail::type<genType>::is_float);
|
GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'cos' only accept floating-point input");
|
||||||
|
|
||||||
return ::std::cos(angle);
|
return ::std::cos(angle);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
#ifndef glm_ext
|
#ifndef glm_ext
|
||||||
#define glm_ext
|
#define glm_ext
|
||||||
|
|
||||||
#include "./gtc/double_float.hpp"
|
|
||||||
#include "./gtc/half_float.hpp"
|
#include "./gtc/half_float.hpp"
|
||||||
#include "./gtc/matrix_access.hpp"
|
#include "./gtc/matrix_access.hpp"
|
||||||
#include "./gtc/matrix_transform.hpp"
|
#include "./gtc/matrix_transform.hpp"
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/gl_replacement.hpp"
|
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
// - GLM core
|
// - GLM core
|
||||||
// - GLM_GTC_half_float
|
// - GLM_GTC_half_float
|
||||||
// - GLM_GTC_double_float
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// ToDo:
|
// ToDo:
|
||||||
// - Study constructors with angles and axis
|
// - Study constructors with angles and axis
|
||||||
@ -22,7 +21,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/half_float.hpp"
|
#include "../gtc/half_float.hpp"
|
||||||
#include "../gtc/double_float.hpp"
|
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
// - GLM core
|
// - GLM core
|
||||||
// - GLM_GTC_half
|
// - GLM_GTC_half
|
||||||
// - GLM_GTC_double
|
|
||||||
// - GLM_GTC_quaternion
|
// - GLM_GTC_quaternion
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@ -19,7 +18,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/half_float.hpp"
|
#include "../gtc/half_float.hpp"
|
||||||
#include "../gtc/double_float.hpp"
|
|
||||||
#include "../gtc/quaternion.hpp"
|
#include "../gtc/quaternion.hpp"
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
@ -36,7 +34,6 @@ namespace glm
|
|||||||
// Dependences
|
// Dependences
|
||||||
|
|
||||||
using namespace gtc::half_float;
|
using namespace gtc::half_float;
|
||||||
using namespace gtc::double_float;
|
|
||||||
using namespace gtc::quaternion;
|
using namespace gtc::quaternion;
|
||||||
|
|
||||||
///////////////////////////
|
///////////////////////////
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
// - GLM core
|
// - GLM core
|
||||||
// - GLM_GTC_half_float
|
// - GLM_GTC_half_float
|
||||||
// - GLM_GTC_double_float
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef glm_gtx_compatibility
|
#ifndef glm_gtx_compatibility
|
||||||
@ -18,7 +17,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/half_float.hpp"
|
#include "../gtc/half_float.hpp"
|
||||||
#include "../gtc/double_float.hpp"
|
|
||||||
|
|
||||||
#ifdef GLM_COMPILER_VC
|
#ifdef GLM_COMPILER_VC
|
||||||
#include <cfloat>
|
#include <cfloat>
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Dependency:
|
// Dependency:
|
||||||
// - GLM core
|
// - GLM core
|
||||||
// - GLM_GTX_double
|
|
||||||
// - GLM_GTX_half
|
// - GLM_GTX_half
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@ -17,7 +16,6 @@
|
|||||||
|
|
||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/double_float.hpp"
|
|
||||||
#include "../gtc/half_float.hpp"
|
#include "../gtc/half_float.hpp"
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
|
@ -4,11 +4,10 @@
|
|||||||
// Created : 2005-12-21
|
// Created : 2005-12-21
|
||||||
// Updated : 2007-08-14
|
// Updated : 2007-08-14
|
||||||
// Licence : This source is under MIT License
|
// Licence : This source is under MIT License
|
||||||
// File : glm/gtx/euler_angles.h
|
// File : glm/gtx/euler_angles.hpp
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Dependency:
|
// Dependency:
|
||||||
// - GLM core
|
// - GLM core
|
||||||
// - GLM_GTC_double_float
|
|
||||||
// - GLM_GTC_half_float
|
// - GLM_GTC_half_float
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// ToDo:
|
// ToDo:
|
||||||
@ -21,7 +20,6 @@
|
|||||||
|
|
||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/double_float.hpp"
|
|
||||||
#include "../gtc/half_float.hpp"
|
#include "../gtc/half_float.hpp"
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
// - GLM core
|
// - GLM core
|
||||||
// - GLM_GTX_half_float
|
// - GLM_GTX_half_float
|
||||||
// - GLM_GTX_double_float
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef glm_gtx_extented_min_max
|
#ifndef glm_gtx_extented_min_max
|
||||||
@ -18,7 +17,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/half_float.hpp"
|
#include "../gtc/half_float.hpp"
|
||||||
#include "../gtc/double_float.hpp"
|
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
{
|
{
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Dependency:
|
// Dependency:
|
||||||
// - GLM core
|
// - GLM core
|
||||||
// - GLM_GTX_half
|
// - GLM_GTC_half_float
|
||||||
// - GLM_GTX_double
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef glm_gtx_fast_exponential
|
#ifndef glm_gtx_fast_exponential
|
||||||
@ -18,7 +17,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/half_float.hpp"
|
#include "../gtc/half_float.hpp"
|
||||||
#include "../gtc/double_float.hpp"
|
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
{
|
{
|
||||||
@ -31,7 +29,6 @@ namespace glm
|
|||||||
namespace fast_exponential
|
namespace fast_exponential
|
||||||
{
|
{
|
||||||
using namespace gtc::half_float;
|
using namespace gtc::half_float;
|
||||||
using namespace gtc::double_float;
|
|
||||||
|
|
||||||
//! Faster than the common pow function but less accurate.
|
//! Faster than the common pow function but less accurate.
|
||||||
//! From GLM_GTX_fast_exponential extension.
|
//! From GLM_GTX_fast_exponential extension.
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
// Dependency:
|
// Dependency:
|
||||||
// - GLM core
|
// - GLM core
|
||||||
// - GLM_GTX_quaternion
|
// - GLM_GTX_quaternion
|
||||||
// - GLM_GTC_double_float
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// ToDo:
|
// ToDo:
|
||||||
// - Study the validity of the notion of length2 to quaternion
|
// - Study the validity of the notion of length2 to quaternion
|
||||||
@ -20,7 +19,6 @@
|
|||||||
|
|
||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/double_float.hpp"
|
|
||||||
#include "../gtx/quaternion.hpp"
|
#include "../gtx/quaternion.hpp"
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Dependency:
|
// Dependency:
|
||||||
// - GLM core
|
// - GLM core
|
||||||
// - GLM_GTX_double
|
// - GLM_GTC_half_float
|
||||||
// - GLM_GTX_half
|
|
||||||
// - GLM_GTX_integer
|
// - GLM_GTX_integer
|
||||||
// - GLM_GTX_quaternion
|
// - GLM_GTX_quaternion
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -19,7 +18,6 @@
|
|||||||
|
|
||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/double_float.hpp"
|
|
||||||
#include "../gtc/half_float.hpp"
|
#include "../gtc/half_float.hpp"
|
||||||
#include "../gtx/integer.hpp"
|
#include "../gtx/integer.hpp"
|
||||||
#include "../gtx/unsigned_int.hpp"
|
#include "../gtx/unsigned_int.hpp"
|
||||||
@ -36,7 +34,6 @@ namespace glm
|
|||||||
//! GLM_GTX_string_cast extension: Setup strings for GLM type values
|
//! GLM_GTX_string_cast extension: Setup strings for GLM type values
|
||||||
namespace string_cast
|
namespace string_cast
|
||||||
{
|
{
|
||||||
using namespace gtc::double_float;
|
|
||||||
using namespace gtc::half_float;
|
using namespace gtc::half_float;
|
||||||
using namespace gtx::integer;
|
using namespace gtx::integer;
|
||||||
using namespace gtx::unsigned_int;
|
using namespace gtx::unsigned_int;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
// Dependency:
|
// Dependency:
|
||||||
#include "../glm.hpp"
|
#include "../glm.hpp"
|
||||||
#include "../gtc/glu_replacement.hpp"
|
|
||||||
#include "../gtx/transform.hpp"
|
#include "../gtx/transform.hpp"
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
@ -30,7 +29,6 @@ namespace glm
|
|||||||
namespace transform2
|
namespace transform2
|
||||||
{
|
{
|
||||||
using namespace gtx::transform;
|
using namespace gtx::transform;
|
||||||
using namespace gtc::glu_replacement;
|
|
||||||
|
|
||||||
//! Transforms a matrix with a shearing on X axis.
|
//! Transforms a matrix with a shearing on X axis.
|
||||||
//! From GLM_GTX_transform2 extension.
|
//! From GLM_GTX_transform2 extension.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user