|
|
@@ -58,98 +58,4 @@ namespace glm
|
|
|
isfinite(x.w));
|
|
|
}
|
|
|
|
|
|
- // isinf
|
|
|
- template <typename genType>
|
|
|
- GLM_FUNC_QUALIFIER bool isinf(
|
|
|
- genType const & x)
|
|
|
- {
|
|
|
-# if(GLM_COMPILER & GLM_COMPILER_VC)
|
|
|
- return _fpclass(x) == _FPCLASS_NINF || _fpclass(x) == _FPCLASS_PINF;
|
|
|
-# elif(GLM_COMPILER & GLM_COMPILER_GCC)
|
|
|
-# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
|
|
|
- return _isinf(x) != 0;
|
|
|
-# else
|
|
|
- return std::isinf(x) != 0;
|
|
|
-# endif
|
|
|
-# else
|
|
|
- return std::isinf(x) != 0;
|
|
|
-# endif
|
|
|
- }
|
|
|
-
|
|
|
- template <typename valType>
|
|
|
- GLM_FUNC_QUALIFIER detail::tvec2<bool> isinf(
|
|
|
- detail::tvec2<valType> const & x)
|
|
|
- {
|
|
|
- return detail::tvec2<bool>(
|
|
|
- isinf(x.x),
|
|
|
- isinf(x.y));
|
|
|
- }
|
|
|
-
|
|
|
- template <typename valType>
|
|
|
- GLM_FUNC_QUALIFIER detail::tvec3<bool> isinf(
|
|
|
- detail::tvec3<valType> const & x)
|
|
|
- {
|
|
|
- return detail::tvec3<bool>(
|
|
|
- isinf(x.x),
|
|
|
- isinf(x.y),
|
|
|
- isinf(x.z));
|
|
|
- }
|
|
|
-
|
|
|
- template <typename valType>
|
|
|
- GLM_FUNC_QUALIFIER detail::tvec4<bool> isinf(
|
|
|
- detail::tvec4<valType> const & x)
|
|
|
- {
|
|
|
- return detail::tvec4<bool>(
|
|
|
- isinf(x.x),
|
|
|
- isinf(x.y),
|
|
|
- isinf(x.z),
|
|
|
- isinf(x.w));
|
|
|
- }
|
|
|
-
|
|
|
- // isnan
|
|
|
- template <typename genType>
|
|
|
- GLM_FUNC_QUALIFIER bool isnan(genType const & x)
|
|
|
- {
|
|
|
-# if(GLM_COMPILER & GLM_COMPILER_VC)
|
|
|
- return _isnan(x);
|
|
|
-# elif(GLM_COMPILER & GLM_COMPILER_GCC)
|
|
|
-# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
|
|
|
- return _isnan(x) != 0;
|
|
|
-# else
|
|
|
- return std::isnan(x) != 0;
|
|
|
-# endif
|
|
|
-# else
|
|
|
- return std::isnan(x) != 0;
|
|
|
-# endif
|
|
|
- }
|
|
|
-
|
|
|
- template <typename valType>
|
|
|
- GLM_FUNC_QUALIFIER detail::tvec2<bool> isnan(
|
|
|
- detail::tvec2<valType> const & x)
|
|
|
- {
|
|
|
- return detail::tvec2<bool>(
|
|
|
- isnan(x.x),
|
|
|
- isnan(x.y));
|
|
|
- }
|
|
|
-
|
|
|
- template <typename valType>
|
|
|
- GLM_FUNC_QUALIFIER detail::tvec3<bool> isnan(
|
|
|
- detail::tvec3<valType> const & x)
|
|
|
- {
|
|
|
- return detail::tvec3<bool>(
|
|
|
- isnan(x.x),
|
|
|
- isnan(x.y),
|
|
|
- isnan(x.z));
|
|
|
- }
|
|
|
-
|
|
|
- template <typename valType>
|
|
|
- GLM_FUNC_QUALIFIER detail::tvec4<bool> isnan(
|
|
|
- detail::tvec4<valType> const & x)
|
|
|
- {
|
|
|
- return detail::tvec4<bool>(
|
|
|
- isnan(x.x),
|
|
|
- isnan(x.y),
|
|
|
- isnan(x.z),
|
|
|
- isnan(x.w));
|
|
|
- }
|
|
|
}//namespace glm
|