diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 00000000..2380bc72 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,34 @@ +clone_folder: c:\dev\glm-cmake + +os: + - Visual Studio 2013 + +platform: + - x86 + - x86_64 + +build_script: +- md build_pure_11 +- cd build_pure_11 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . --config Debug +- cmake --build . --config Release +- cd .. +- md build_simd_11 +- cd build_simd_11 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON .. +- cmake --build . --config Debug +- cmake --build . --config Release +- cd .. +- md build_pure_98 +- cd build_pure_98 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . --config Debug +- cmake --build . --config Release +- cd .. +- md build_simd_98 +- cd build_simd_98 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON .. +- cmake --build . --config Debug +- cmake --build . --config Release +- cd .. diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..ff6e891b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,84 @@ +language: cpp + +os: + - linux + - osx + +matrix: + include: + - compiler: gcc + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.9 + env: COMPILER=g++-4.9 + - compiler: clang + addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.8 + packages: + - clang-3.8 + env: COMPILER=clang++-3.8 + +compiler: + - clang + +before_script: + +script: +- mkdir ./build_pure_11 +- cd ./build_pure_11 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . +- ctest +- cd .. +- mkdir ./build_pure_98 +- cd ./build_pure_98 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . +- ctest +- cd .. +- mkdir ./build_pure_11_debug +- cd ./build_pure_11_debug +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . +- ctest +- cd .. +- mkdir ./build_pure_98_debug +- cd ./build_pure_98_debug +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . +- ctest +- cd .. +- mkdir ./build_simd_11 +- cd ./build_simd_11 +- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON ..; else cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON ..; fi +- cmake --build . +- ctest +- cd .. +- mkdir ./build_simd_98 +- cd ./build_simd_98 +- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON ..; else cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON ..; fi +- cmake --build . +- ctest +- cd .. +- mkdir ./build_simd_11_debug +- cd ./build_simd_11_debug +- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON ..; else cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON ..; fi +- cmake --build . +- ctest +- cd .. +- mkdir ./build_simd_98_debug +- cd ./build_simd_98_debug +- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON ..; else cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON ..; fi +- cmake --build . +- ctest +- cd .. + + + + diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d94c514..863049f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,38 +111,43 @@ if(GLM_TEST_FORCE_PURE) if(CMAKE_COMPILER_IS_GNUCXX) add_definitions(-mfpmath=387) endif() + message(STATUS "GLM: No SIMD instruction set") elseif(GLM_TEST_ENABLE_SIMD_AVX2) - if(CMAKE_COMPILER_IS_GNUCXX) + if(CMAKE_COMPILER_IS_GNUCXX OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) add_definitions(-mavx2) elseif(GLM_USE_INTEL) add_definitions(/QxAVX2) elseif(MSVC) add_definitions(/arch:AVX2) endif() + message(STATUS "GLM: AVX2 instruction set") elseif(GLM_TEST_ENABLE_SIMD_AVX) - if(CMAKE_COMPILER_IS_GNUCXX) + if(CMAKE_COMPILER_IS_GNUCXX OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) add_definitions(-mavx) elseif(GLM_USE_INTEL) add_definitions(/QxAVX) elseif(MSVC) add_definitions(/arch:AVX) endif() + message(STATUS "GLM: AVX instruction set") elseif(GLM_TEST_ENABLE_SIMD_SSE3) - if(CMAKE_COMPILER_IS_GNUCXX) + if(CMAKE_COMPILER_IS_GNUCXX OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) add_definitions(-msse3) elseif(GLM_USE_INTEL) add_definitions(/QxSSE3) elseif(MSVC AND NOT CMAKE_CL_64) - add_definitions(/arch:SSE2) # VC doesn't support /arch:SSE3 + add_definitions(/arch:SSE2) # VC doesn't support /arch:SSE3 endif() + message(STATUS "GLM: SSE3 instruction set") elseif(GLM_TEST_ENABLE_SIMD_SSE2) - if(CMAKE_COMPILER_IS_GNUCXX) + if(CMAKE_COMPILER_IS_GNUCXX OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) add_definitions(-msse2) elseif(GLM_USE_INTEL) add_definitions(/QxSSE2) elseif(MSVC AND NOT CMAKE_CL_64) add_definitions(/arch:SSE2) endif() + message(STATUS "GLM: SSE2 instruction set") endif() if(CMAKE_COMPILER_IS_GNUCXX) @@ -168,7 +173,7 @@ set(GLM_INSTALL_CONFIGDIR "${CMAKE_INSTALL_LIBDIR}/cmake/glm") install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) write_basic_package_version_file( - "${CMAKE_CURRENT_BINARY_DIR}/glmVersion.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake" VERSION ${GLM_VERSION} COMPATIBILITY AnyNewerVersion ) @@ -192,7 +197,7 @@ configure_package_config_file( install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${GLM_INSTALL_CONFIGDIR}/glmConfig.cmake" - "${CMAKE_CURRENT_BINARY_DIR}/glmVersion.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake" DESTINATION ${GLM_INSTALL_CONFIGDIR} ) diff --git a/copying.txt b/copying.txt deleted file mode 100644 index 7c20b4a6..00000000 --- a/copying.txt +++ /dev/null @@ -1,54 +0,0 @@ -================================================================================ -OpenGL Mathematics (GLM) --------------------------------------------------------------------------------- -GLM can be distributed and/or modified under the terms of either -a) The Happy Bunny License, or b) the MIT License. - -================================================================================ -The Happy Bunny License (Modified MIT License) --------------------------------------------------------------------------------- -Copyright (c) 2005 - 2016 G-Truc Creation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -Restrictions: By making use of the Software for military purposes, you choose -to make a Bunny unhappy. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -================================================================================ -The MIT License --------------------------------------------------------------------------------- -Copyright (c) 2005 - 2016 G-Truc Creation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/doc/api/a00001.html b/doc/api/a00001.html index bf310c8d..17261236 100644 --- a/doc/api/a00001.html +++ b/doc/api/a00001.html @@ -4,10 +4,16 @@ -
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T , typename U > | |
| GLM_FUNC_DECL U | associatedMax (T x, U a, T y, U b) |
| Maximum comparison between 2 variables and returns 2 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL tvec2< U, P > | associatedMax (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b) |
| Maximum comparison between 2 variables and returns 2 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | associatedMax (T x, vecType< U, P > const &a, T y, vecType< U, P > const &b) |
| Maximum comparison between 2 variables and returns 2 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMax (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b) |
| Maximum comparison between 2 variables and returns 2 associated variable values. More... | |
| template<typename T , typename U > | |
| GLM_FUNC_DECL U | associatedMax (T x, U a, T y, U b, T z, U c) |
| Maximum comparison between 3 variables and returns 3 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMax (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b, vecType< T, P > const &z, vecType< U, P > const &c) |
| Maximum comparison between 3 variables and returns 3 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | associatedMax (T x, vecType< U, P > const &a, T y, vecType< U, P > const &b, T z, vecType< U, P > const &c) |
| Maximum comparison between 3 variables and returns 3 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMax (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c) |
| Maximum comparison between 3 variables and returns 3 associated variable values. More... | |
| template<typename T , typename U > | |
| GLM_FUNC_DECL U | associatedMax (T x, U a, T y, U b, T z, U c, T w, U d) |
| Maximum comparison between 4 variables and returns 4 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMax (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b, vecType< T, P > const &z, vecType< U, P > const &c, vecType< T, P > const &w, vecType< U, P > const &d) |
| Maximum comparison between 4 variables and returns 4 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMax (T x, vecType< U, P > const &a, T y, vecType< U, P > const &b, T z, vecType< U, P > const &c, T w, vecType< U, P > const &d) |
| Maximum comparison between 4 variables and returns 4 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMax (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c, vecType< T, P > const &w, U d) |
| Maximum comparison between 4 variables and returns 4 associated variable values. More... | |
| template<typename T , typename U , precision P> | |
| GLM_FUNC_DECL U | associatedMin (T x, U a, T y, U b) |
| Minimum comparison between 2 variables and returns 2 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL tvec2< U, P > | associatedMin (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b) |
| Minimum comparison between 2 variables and returns 2 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMin (T x, const vecType< U, P > &a, T y, const vecType< U, P > &b) |
| Minimum comparison between 2 variables and returns 2 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMin (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b) |
| Minimum comparison between 2 variables and returns 2 associated variable values. More... | |
| template<typename T , typename U > | |
| GLM_FUNC_DECL U | associatedMin (T x, U a, T y, U b, T z, U c) |
| Minimum comparison between 3 variables and returns 3 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMin (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b, vecType< T, P > const &z, vecType< U, P > const &c) |
| Minimum comparison between 3 variables and returns 3 associated variable values. More... | |
| template<typename T , typename U > | |
| GLM_FUNC_DECL U | associatedMin (T x, U a, T y, U b, T z, U c, T w, U d) |
| Minimum comparison between 4 variables and returns 4 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMin (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b, vecType< T, P > const &z, vecType< U, P > const &c, vecType< T, P > const &w, vecType< U, P > const &d) |
| Minimum comparison between 4 variables and returns 4 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMin (T x, vecType< U, P > const &a, T y, vecType< U, P > const &b, T z, vecType< U, P > const &c, T w, vecType< U, P > const &d) |
| Minimum comparison between 4 variables and returns 4 associated variable values. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< U, P > | associatedMin (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c, vecType< T, P > const &w, U d) |
| Minimum comparison between 4 variables and returns 4 associated variable values. More... | |
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
@@ -61,34 +103,39 @@ Functions | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | highestBitValue (vecType< T, P > const &value) |
| Find the highest bit set to 1 in a integer variable and return its value. More... | |
| template<typename genIUType > | |
| GLM_FUNC_DECL genIUType | lowestBitValue (genIUType Value) |
| template<typename genIUType > | |
| GLM_DEPRECATED GLM_FUNC_DECL genIUType | powerOfTwoAbove (genIUType Value) |
| Return the power of two number which value is just higher the input value. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_DEPRECATED GLM_FUNC_DECL vecType< T, P > | powerOfTwoAbove (vecType< T, P > const &value) |
| Return the power of two number which value is just higher the input value. More... | |
| template<typename genIUType > | |
| GLM_DEPRECATED GLM_FUNC_DECL genIUType | powerOfTwoBelow (genIUType Value) |
| Return the power of two number which value is just lower the input value. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_DEPRECATED GLM_FUNC_DECL vecType< T, P > | powerOfTwoBelow (vecType< T, P > const &value) |
| Return the power of two number which value is just lower the input value. More... | |
| template<typename genIUType > | |
| GLM_DEPRECATED GLM_FUNC_DECL genIUType | powerOfTwoNearest (genIUType Value) |
| Return the power of two number which value is the closet to the input value. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_DEPRECATED GLM_FUNC_DECL vecType< T, P > | powerOfTwoNearest (vecType< T, P > const &value) |
| Return the power of two number which value is the closet to the input value. More... | |
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename genIUType > | |
| GLM_FUNC_DECL genIUType | bitfieldFillOne (genIUType Value, int FirstBit, int BitCount) |
| GLM_FUNC_DECL genIUType | bitfieldFillOne (genIUType Value, int FirstBit, int BitCount) |
| Set to 1 a range of bits. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | bitfieldFillOne (vecType< T, P > const &Value, int FirstBit, int BitCount) |
| GLM_FUNC_DECL vecType< T, P > | bitfieldFillOne (vecType< T, P > const &Value, int FirstBit, int BitCount) |
| Set to 1 a range of bits. More... | |
| template<typename genIUType > | |
| GLM_FUNC_DECL genIUType | bitfieldFillZero (genIUType Value, int FirstBit, int BitCount) |
| GLM_FUNC_DECL genIUType | bitfieldFillZero (genIUType Value, int FirstBit, int BitCount) |
| Set to 0 a range of bits. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | bitfieldFillZero (vecType< T, P > const &Value, int FirstBit, int BitCount) |
| GLM_FUNC_DECL vecType< T, P > | bitfieldFillZero (vecType< T, P > const &Value, int FirstBit, int BitCount) |
| Set to 0 a range of bits. More... | |
| GLM_FUNC_DECL int16 | bitfieldInterleave (int8 x, int8 y) |
| GLM_FUNC_DECL int16 | bitfieldInterleave (int8 x, int8 y) |
| Interleaves the bits of x and y. More... | |
| GLM_FUNC_DECL uint16 | bitfieldInterleave (uint8 x, uint8 y) |
| GLM_FUNC_DECL uint16 | bitfieldInterleave (uint8 x, uint8 y) |
| Interleaves the bits of x and y. More... | |
| GLM_FUNC_DECL int32 | bitfieldInterleave (int16 x, int16 y) |
| GLM_FUNC_DECL int32 | bitfieldInterleave (int16 x, int16 y) |
| Interleaves the bits of x and y. More... | |
| GLM_FUNC_DECL uint32 | bitfieldInterleave (uint16 x, uint16 y) |
| GLM_FUNC_DECL uint32 | bitfieldInterleave (uint16 x, uint16 y) |
| Interleaves the bits of x and y. More... | |
| GLM_FUNC_DECL int64 | bitfieldInterleave (int32 x, int32 y) |
| GLM_FUNC_DECL int64 | bitfieldInterleave (int32 x, int32 y) |
| Interleaves the bits of x and y. More... | |
| GLM_FUNC_DECL uint64 | bitfieldInterleave (uint32 x, uint32 y) |
| GLM_FUNC_DECL uint64 | bitfieldInterleave (uint32 x, uint32 y) |
| Interleaves the bits of x and y. More... | |
| GLM_FUNC_DECL int32 | bitfieldInterleave (int8 x, int8 y, int8 z) |
| GLM_FUNC_DECL int32 | bitfieldInterleave (int8 x, int8 y, int8 z) |
| Interleaves the bits of x, y and z. More... | |
| GLM_FUNC_DECL uint32 | bitfieldInterleave (uint8 x, uint8 y, uint8 z) |
| GLM_FUNC_DECL uint32 | bitfieldInterleave (uint8 x, uint8 y, uint8 z) |
| Interleaves the bits of x, y and z. More... | |
| GLM_FUNC_DECL int64 | bitfieldInterleave (int16 x, int16 y, int16 z) |
| GLM_FUNC_DECL int64 | bitfieldInterleave (int16 x, int16 y, int16 z) |
| Interleaves the bits of x, y and z. More... | |
| GLM_FUNC_DECL uint64 | bitfieldInterleave (uint16 x, uint16 y, uint16 z) |
| GLM_FUNC_DECL uint64 | bitfieldInterleave (uint16 x, uint16 y, uint16 z) |
| Interleaves the bits of x, y and z. More... | |
| GLM_FUNC_DECL int64 | bitfieldInterleave (int32 x, int32 y, int32 z) |
| GLM_FUNC_DECL int64 | bitfieldInterleave (int32 x, int32 y, int32 z) |
| Interleaves the bits of x, y and z. More... | |
| GLM_FUNC_DECL uint64 | bitfieldInterleave (uint32 x, uint32 y, uint32 z) |
| GLM_FUNC_DECL uint64 | bitfieldInterleave (uint32 x, uint32 y, uint32 z) |
| Interleaves the bits of x, y and z. More... | |
| GLM_FUNC_DECL int32 | bitfieldInterleave (int8 x, int8 y, int8 z, int8 w) |
| GLM_FUNC_DECL int32 | bitfieldInterleave (int8 x, int8 y, int8 z, int8 w) |
| Interleaves the bits of x, y, z and w. More... | |
| GLM_FUNC_DECL uint32 | bitfieldInterleave (uint8 x, uint8 y, uint8 z, uint8 w) |
| GLM_FUNC_DECL uint32 | bitfieldInterleave (uint8 x, uint8 y, uint8 z, uint8 w) |
| Interleaves the bits of x, y, z and w. More... | |
| GLM_FUNC_DECL int64 | bitfieldInterleave (int16 x, int16 y, int16 z, int16 w) |
| GLM_FUNC_DECL int64 | bitfieldInterleave (int16 x, int16 y, int16 z, int16 w) |
| Interleaves the bits of x, y, z and w. More... | |
| GLM_FUNC_DECL uint64 | bitfieldInterleave (uint16 x, uint16 y, uint16 z, uint16 w) |
| GLM_FUNC_DECL uint64 | bitfieldInterleave (uint16 x, uint16 y, uint16 z, uint16 w) |
| Interleaves the bits of x, y, z and w. More... | |
| template<typename genIUType > | |
| GLM_FUNC_DECL genIUType | bitfieldRotateLeft (genIUType In, int Shift) |
| GLM_FUNC_DECL genIUType | bitfieldRotateLeft (genIUType In, int Shift) |
| Rotate all bits to the left. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | bitfieldRotateLeft (vecType< T, P > const &In, int Shift) |
| GLM_FUNC_DECL vecType< T, P > | bitfieldRotateLeft (vecType< T, P > const &In, int Shift) |
| Rotate all bits to the left. More... | |
| template<typename genIUType > | |
| GLM_FUNC_DECL genIUType | bitfieldRotateRight (genIUType In, int Shift) |
| GLM_FUNC_DECL genIUType | bitfieldRotateRight (genIUType In, int Shift) |
| Rotate all bits to the right. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | bitfieldRotateRight (vecType< T, P > const &In, int Shift) |
| GLM_FUNC_DECL vecType< T, P > | bitfieldRotateRight (vecType< T, P > const &In, int Shift) |
| Rotate all bits to the right. More... | |
| template<typename genIUType > | |
| GLM_FUNC_DECL genIUType | mask (genIUType Bits) |
| GLM_FUNC_DECL genIUType | mask (genIUType Bits) |
| Build a mask of 'count' bits. More... | |
| template<typename T , precision P, template< typename, precision > class vecIUType> | |
| GLM_FUNC_DECL vecIUType< T, P > | mask (vecIUType< T, P > const &v) |
| GLM_FUNC_DECL vecIUType< T, P > | mask (vecIUType< T, P > const &v) |
| Build a mask of 'count' bits. More... | |
Definition in file bitfield.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | closestPointOnLine (tvec3< T, P > const &point, tvec3< T, P > const &a, tvec3< T, P > const &b) |
| Find the point on a straight line which is the closet of a point. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec2< T, P > | closestPointOnLine (tvec2< T, P > const &point, tvec2< T, P > const &a, tvec2< T, P > const &b) |
| 2d lines work as well | |
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | convertLinearToSRGB (vecType< T, P > const &ColorLinear) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | convertLinearToSRGB (vecType< T, P > const &ColorLinear, T Gamma) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | convertSRGBToLinear (vecType< T, P > const &ColorSRGB) |
| -template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | convertSRGBToLinear (vecType< T, P > const &ColorSRGB, T Gamma) |
| +template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | convertD50XYZToD65XYZ (tvec3< T, P > const &ColorD50XYZ) |
| Convert a D50 YUV color to D65 YUV. | |
| +template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | convertD65XYZToD50XYZ (tvec3< T, P > const &ColorD65XYZ) |
| Convert a D65 YUV color to D50 YUV. | |
| +template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | convertD65XYZToLinearSRGB (tvec3< T, P > const &ColorD65XYZ) |
| Convert a D65 YUV color to linear sRGB. | |
| +template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | convertLinearSRGBToD65XYZ (tvec3< T, P > const &ColorLinearSRGB) |
| Convert a linear sRGB color to D65 YUV. | |
Definition in file gtc/color_space.hpp.
+Definition in file color_encoding.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | hsvColor (tvec3< T, P > const &rgbValue) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL T | luminosity (tvec3< T, P > const &color) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | rgbColor (tvec3< T, P > const &hsvValue) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | saturation (T const s) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | saturation (T const s, tvec3< T, P > const &color) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec4< T, P > | saturation (T const s, tvec4< T, P > const &color) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | convertLinearToSRGB (vecType< T, P > const &ColorLinear) |
| Convert a linear color to sRGB color using a standard gamma correction. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | convertLinearToSRGB (vecType< T, P > const &ColorLinear, T Gamma) |
| Convert a linear color to sRGB color using a custom gamma correction. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | convertSRGBToLinear (vecType< T, P > const &ColorSRGB) |
| Convert a sRGB color to linear color using a standard gamma correction. More... | |
| +template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | convertSRGBToLinear (vecType< T, P > const &ColorSRGB, T Gamma) |
| Convert a sRGB color to linear color using a custom gamma correction. | |
Definition in file gtx/color_space.hpp.
+Definition in file gtc/color_space.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | rgb2YCoCg (tvec3< T, P > const &rgbColor) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | rgb2YCoCgR (tvec3< T, P > const &rgbColor) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | YCoCg2rgb (tvec3< T, P > const &YCoCgColor) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | YCoCgR2rgb (tvec3< T, P > const &YCoCgColor) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | hsvColor (tvec3< T, P > const &rgbValue) |
| Converts a color from RGB color space to its color in HSV color space. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL T | luminosity (tvec3< T, P > const &color) |
| Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | rgbColor (tvec3< T, P > const &hsvValue) |
| Converts a color from HSV color space to its color in RGB color space. More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | saturation (T const s) |
| Build a saturation matrix. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | saturation (T const s, tvec3< T, P > const &color) |
| Modify the saturation of a color. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec4< T, P > | saturation (T const s, tvec4< T, P > const &color) |
| Modify the saturation of a color. More... | |
Definition in file color_space_YCoCg.hpp.
+Definition in file gtx/color_space.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
+Functions | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | rgb2YCoCg (tvec3< T, P > const &rgbColor) |
| Convert a color from RGB color space to YCoCg color space. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | rgb2YCoCgR (tvec3< T, P > const &rgbColor) |
| Convert a color from RGB color space to YCoCgR color space. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | YCoCg2rgb (tvec3< T, P > const &YCoCgColor) |
| Convert a color from YCoCg color space to RGB color space. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | YCoCgR2rgb (tvec3< T, P > const &YCoCgColor) |
| Convert a color from YCoCgR color space to RGB color space. More... | |
Definition in file color_space_YCoCg.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
-Functions | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fmod (vecType< T, P > const &v) |
| template<typename genType > | |
| GLM_FUNC_DECL genType::bool_type | isdenormal (genType const &x) |
Definition in file gtx/common.hpp.
+Go to the source code of this file.
+Definition in file common.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
-Typedefs | |
| -typedef bool | bool1 |
| -typedef bool | bool1x1 |
| -typedef tvec2< bool, highp > | bool2 |
| -typedef tmat2x2< bool, highp > | bool2x2 |
| -typedef tmat2x3< bool, highp > | bool2x3 |
| -typedef tmat2x4< bool, highp > | bool2x4 |
| -typedef tvec3< bool, highp > | bool3 |
| -typedef tmat3x2< bool, highp > | bool3x2 |
| -typedef tmat3x3< bool, highp > | bool3x3 |
| -typedef tmat3x4< bool, highp > | bool3x4 |
| -typedef tvec4< bool, highp > | bool4 |
| -typedef tmat4x2< bool, highp > | bool4x2 |
| -typedef tmat4x3< bool, highp > | bool4x3 |
| -typedef tmat4x4< bool, highp > | bool4x4 |
| -typedef double | double1 |
| -typedef double | double1x1 |
| -typedef tvec2< double, highp > | double2 |
| -typedef tmat2x2< double, highp > | double2x2 |
| -typedef tmat2x3< double, highp > | double2x3 |
| -typedef tmat2x4< double, highp > | double2x4 |
| -typedef tvec3< double, highp > | double3 |
| -typedef tmat3x2< double, highp > | double3x2 |
| -typedef tmat3x3< double, highp > | double3x3 |
| -typedef tmat3x4< double, highp > | double3x4 |
| -typedef tvec4< double, highp > | double4 |
| -typedef tmat4x2< double, highp > | double4x2 |
| -typedef tmat4x3< double, highp > | double4x3 |
| -typedef tmat4x4< double, highp > | double4x4 |
| -typedef float | float1 |
| -typedef float | float1x1 |
| -typedef tvec2< float, highp > | float2 |
| -typedef tmat2x2< float, highp > | float2x2 |
| -typedef tmat2x3< float, highp > | float2x3 |
| -typedef tmat2x4< float, highp > | float2x4 |
| -typedef tvec3< float, highp > | float3 |
| -typedef tmat3x2< float, highp > | float3x2 |
| -typedef tmat3x3< float, highp > | float3x3 |
| -typedef tmat3x4< float, highp > | float3x4 |
| -typedef tvec4< float, highp > | float4 |
| -typedef tmat4x2< float, highp > | float4x2 |
| -typedef tmat4x3< float, highp > | float4x3 |
| -typedef tmat4x4< float, highp > | float4x4 |
| -typedef int | int1 |
| -typedef int | int1x1 |
| -typedef tvec2< int, highp > | int2 |
| -typedef tmat2x2< int, highp > | int2x2 |
| -typedef tmat2x3< int, highp > | int2x3 |
| -typedef tmat2x4< int, highp > | int2x4 |
| -typedef tvec3< int, highp > | int3 |
| -typedef tmat3x2< int, highp > | int3x2 |
| -typedef tmat3x3< int, highp > | int3x3 |
| -typedef tmat3x4< int, highp > | int3x4 |
| -typedef tvec4< int, highp > | int4 |
| -typedef tmat4x2< int, highp > | int4x2 |
| -typedef tmat4x3< int, highp > | int4x3 |
| -typedef tmat4x4< int, highp > | int4x4 |
Functions | |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER T | atan2 (T x, T y) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec2< T, P > | atan2 (const tvec2< T, P > &x, const tvec2< T, P > &y) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec3< T, P > | atan2 (const tvec3< T, P > &x, const tvec3< T, P > &y) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec4< T, P > | atan2 (const tvec4< T, P > &x, const tvec4< T, P > &y) |
| -template<typename genType > | |
| GLM_FUNC_DECL bool | isfinite (genType const &x) |
| -template<typename T , precision P> | |
| GLM_FUNC_DECL tvec1< bool, P > | isfinite (const tvec1< T, P > &x) |
| -template<typename T , precision P> | |
| GLM_FUNC_DECL tvec2< bool, P > | isfinite (const tvec2< T, P > &x) |
| -template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< bool, P > | isfinite (const tvec3< T, P > &x) |
| -template<typename T , precision P> | |
| GLM_FUNC_DECL tvec4< bool, P > | isfinite (const tvec4< T, P > &x) |
| -template<typename T > | |
| GLM_FUNC_QUALIFIER T | lerp (T x, T y, T a) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec2< T, P > | lerp (const tvec2< T, P > &x, const tvec2< T, P > &y, T a) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec3< T, P > | lerp (const tvec3< T, P > &x, const tvec3< T, P > &y, T a) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec4< T, P > | lerp (const tvec4< T, P > &x, const tvec4< T, P > &y, T a) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec2< T, P > | lerp (const tvec2< T, P > &x, const tvec2< T, P > &y, const tvec2< T, P > &a) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec3< T, P > | lerp (const tvec3< T, P > &x, const tvec3< T, P > &y, const tvec3< T, P > &a) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec4< T, P > | lerp (const tvec4< T, P > &x, const tvec4< T, P > &y, const tvec4< T, P > &a) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER T | saturate (T x) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec2< T, P > | saturate (const tvec2< T, P > &x) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec3< T, P > | saturate (const tvec3< T, P > &x) |
| -template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec4< T, P > | saturate (const tvec4< T, P > &x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fmod (vecType< T, P > const &v) |
| Similar to 'mod' but with a different rounding and integer support. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType::bool_type | isdenormal (genType const &x) |
| Returns true if x is a denormalized number Numbers whose absolute value is too small to be represented in the normal format are represented in an alternate, denormalized format. More... | |
Definition in file compatibility.hpp.
+Definition in file gtx/common.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
+Typedefs | |
| +typedef bool | bool1 |
| boolean type with 1 component. (From GLM_GTX_compatibility extension) | |
| +typedef bool | bool1x1 |
| boolean matrix with 1 x 1 component. (From GLM_GTX_compatibility extension) | |
| +typedef tvec2< bool, highp > | bool2 |
| boolean type with 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x2< bool, highp > | bool2x2 |
| boolean matrix with 2 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x3< bool, highp > | bool2x3 |
| boolean matrix with 2 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x4< bool, highp > | bool2x4 |
| boolean matrix with 2 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tvec3< bool, highp > | bool3 |
| boolean type with 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x2< bool, highp > | bool3x2 |
| boolean matrix with 3 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x3< bool, highp > | bool3x3 |
| boolean matrix with 3 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x4< bool, highp > | bool3x4 |
| boolean matrix with 3 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tvec4< bool, highp > | bool4 |
| boolean type with 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x2< bool, highp > | bool4x2 |
| boolean matrix with 4 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x3< bool, highp > | bool4x3 |
| boolean matrix with 4 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x4< bool, highp > | bool4x4 |
| boolean matrix with 4 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef double | double1 |
| double-precision floating-point vector with 1 component. (From GLM_GTX_compatibility extension) | |
| +typedef double | double1x1 |
| double-precision floating-point matrix with 1 component. (From GLM_GTX_compatibility extension) | |
| +typedef tvec2< double, highp > | double2 |
| double-precision floating-point vector with 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x2< double, highp > | double2x2 |
| double-precision floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x3< double, highp > | double2x3 |
| double-precision floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x4< double, highp > | double2x4 |
| double-precision floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tvec3< double, highp > | double3 |
| double-precision floating-point vector with 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x2< double, highp > | double3x2 |
| double-precision floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x3< double, highp > | double3x3 |
| double-precision floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x4< double, highp > | double3x4 |
| double-precision floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tvec4< double, highp > | double4 |
| double-precision floating-point vector with 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x2< double, highp > | double4x2 |
| double-precision floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x3< double, highp > | double4x3 |
| double-precision floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x4< double, highp > | double4x4 |
| double-precision floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef float | float1 |
| single-precision floating-point vector with 1 component. (From GLM_GTX_compatibility extension) | |
| +typedef float | float1x1 |
| single-precision floating-point matrix with 1 component. (From GLM_GTX_compatibility extension) | |
| +typedef tvec2< float, highp > | float2 |
| single-precision floating-point vector with 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x2< float, highp > | float2x2 |
| single-precision floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x3< float, highp > | float2x3 |
| single-precision floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x4< float, highp > | float2x4 |
| single-precision floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tvec3< float, highp > | float3 |
| single-precision floating-point vector with 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x2< float, highp > | float3x2 |
| single-precision floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x3< float, highp > | float3x3 |
| single-precision floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x4< float, highp > | float3x4 |
| single-precision floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tvec4< float, highp > | float4 |
| single-precision floating-point vector with 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x2< float, highp > | float4x2 |
| single-precision floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x3< float, highp > | float4x3 |
| single-precision floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x4< float, highp > | float4x4 |
| single-precision floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef int | int1 |
| integer vector with 1 component. (From GLM_GTX_compatibility extension) | |
| +typedef int | int1x1 |
| integer matrix with 1 component. (From GLM_GTX_compatibility extension) | |
| +typedef tvec2< int, highp > | int2 |
| integer vector with 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x2< int, highp > | int2x2 |
| integer matrix with 2 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x3< int, highp > | int2x3 |
| integer matrix with 2 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat2x4< int, highp > | int2x4 |
| integer matrix with 2 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tvec3< int, highp > | int3 |
| integer vector with 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x2< int, highp > | int3x2 |
| integer matrix with 3 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x3< int, highp > | int3x3 |
| integer matrix with 3 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat3x4< int, highp > | int3x4 |
| integer matrix with 3 x 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tvec4< int, highp > | int4 |
| integer vector with 4 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x2< int, highp > | int4x2 |
| integer matrix with 4 x 2 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x3< int, highp > | int4x3 |
| integer matrix with 4 x 3 components. (From GLM_GTX_compatibility extension) | |
| +typedef tmat4x4< int, highp > | int4x4 |
| integer matrix with 4 x 4 components. (From GLM_GTX_compatibility extension) | |
Functions | |
| template<typename genType > | |
| GLM_FUNC_DECL genType::value_type | compAdd (genType const &v) |
| template<typename genType > | |
| GLM_FUNC_DECL genType::value_type | compMax (genType const &v) |
| template<typename genType > | |
| GLM_FUNC_DECL genType::value_type | compMin (genType const &v) |
| template<typename genType > | |
| GLM_FUNC_DECL genType::value_type | compMul (genType const &v) |
| template<typename floatType , typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< floatType, P > | compNormalize (vecType< T, P > const &v) |
| template<typename T , typename floatType , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | compScale (vecType< floatType, P > const &v) |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER T | atan2 (T x, T y) |
| Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec2< T, P > | atan2 (const tvec2< T, P > &x, const tvec2< T, P > &y) |
| Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec3< T, P > | atan2 (const tvec3< T, P > &x, const tvec3< T, P > &y) |
| Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec4< T, P > | atan2 (const tvec4< T, P > &x, const tvec4< T, P > &y) |
| Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility) | |
| +template<typename genType > | |
| GLM_FUNC_DECL bool | isfinite (genType const &x) |
| Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_DECL tvec1< bool, P > | isfinite (const tvec1< T, P > &x) |
| Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_DECL tvec2< bool, P > | isfinite (const tvec2< T, P > &x) |
| Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< bool, P > | isfinite (const tvec3< T, P > &x) |
| Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_DECL tvec4< bool, P > | isfinite (const tvec4< T, P > &x) |
| Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility) | |
| +template<typename T > | |
| GLM_FUNC_QUALIFIER T | lerp (T x, T y, T a) |
| Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec2< T, P > | lerp (const tvec2< T, P > &x, const tvec2< T, P > &y, T a) |
| Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec3< T, P > | lerp (const tvec3< T, P > &x, const tvec3< T, P > &y, T a) |
| Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec4< T, P > | lerp (const tvec4< T, P > &x, const tvec4< T, P > &y, T a) |
| Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec2< T, P > | lerp (const tvec2< T, P > &x, const tvec2< T, P > &y, const tvec2< T, P > &a) |
| Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec3< T, P > | lerp (const tvec3< T, P > &x, const tvec3< T, P > &y, const tvec3< T, P > &a) |
| Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec4< T, P > | lerp (const tvec4< T, P > &x, const tvec4< T, P > &y, const tvec4< T, P > &a) |
| Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER T | saturate (T x) |
| Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec2< T, P > | saturate (const tvec2< T, P > &x) |
| Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec3< T, P > | saturate (const tvec3< T, P > &x) |
| Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) | |
| +template<typename T , precision P> | |
| GLM_FUNC_QUALIFIER tvec4< T, P > | saturate (const tvec4< T, P > &x) |
| Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) | |
Definition in file component_wise.hpp.
+Definition in file compatibility.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | e () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | epsilon () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | euler () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | four_over_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | golden_ratio () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | half_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | ln_ln_two () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | ln_ten () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | ln_two () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | one () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | one_over_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | one_over_root_two () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | one_over_two_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | quarter_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_five () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_half_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_ln_four () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_three () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_two () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_two_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | third () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | three_over_two_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | two_over_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | two_over_root_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | two_pi () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | two_thirds () |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | zero () |
| template<typename genType > | |
| GLM_FUNC_DECL genType::value_type | compAdd (genType const &v) |
| Add all vector components together. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType::value_type | compMax (genType const &v) |
| Find the maximum value between single vector components. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType::value_type | compMin (genType const &v) |
| Find the minimum value between single vector components. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType::value_type | compMul (genType const &v) |
| Multiply all vector components together. More... | |
| template<typename floatType , typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< floatType, P > | compNormalize (vecType< T, P > const &v) |
| Convert an integer vector to a normalized float vector. More... | |
| template<typename T , typename floatType , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | compScale (vecType< floatType, P > const &v) |
| Convert a normalized float vector to an integer vector. More... | |
Definition in file constants.hpp.
+Definition in file component_wise.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
-Typedefs | |
| typedef highp_ddualquat | ddualquat |
| typedef highp_fdualquat | dualquat |
| typedef highp_fdualquat | fdualquat |
| typedef tdualquat< double, highp > | highp_ddualquat |
| typedef tdualquat< float, highp > | highp_dualquat |
| typedef tdualquat< float, highp > | highp_fdualquat |
| typedef tdualquat< double, lowp > | lowp_ddualquat |
| typedef tdualquat< float, lowp > | lowp_dualquat |
| typedef tdualquat< float, lowp > | lowp_fdualquat |
| typedef tdualquat< double, mediump > | mediump_ddualquat |
| typedef tdualquat< float, mediump > | mediump_dualquat |
| typedef tdualquat< float, mediump > | mediump_fdualquat |
Functions | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | dualquat_cast (tmat2x4< T, P > const &x) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | dualquat_cast (tmat3x4< T, P > const &x) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | inverse (tdualquat< T, P > const &q) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | lerp (tdualquat< T, P > const &x, tdualquat< T, P > const &y, T const &a) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tmat2x4< T, P > | mat2x4_cast (tdualquat< T, P > const &x) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tmat3x4< T, P > | mat3x4_cast (tdualquat< T, P > const &x) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | normalize (tdualquat< T, P > const &q) |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | e () |
| Return e constant. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | epsilon () |
| Return the epsilon constant for floating point types. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | euler () |
| Return Euler's constant. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | four_over_pi () |
| Return 4 / pi. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | golden_ratio () |
| Return the golden ratio constant. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | half_pi () |
| Return pi / 2. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | ln_ln_two () |
| Return ln(ln(2)). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | ln_ten () |
| Return ln(10). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | ln_two () |
| Return ln(2). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | one () |
| Return 1. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | one_over_pi () |
| Return 1 / pi. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | one_over_root_two () |
| Return 1 / sqrt(2). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | one_over_two_pi () |
| Return 1 / (pi * 2). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | pi () |
| Return the pi constant. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | quarter_pi () |
| Return pi / 4. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_five () |
| Return sqrt(5). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_half_pi () |
| Return sqrt(pi / 2). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_ln_four () |
| Return sqrt(ln(4)). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_pi () |
| Return square root of pi. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_three () |
| Return sqrt(3). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_two () |
| Return sqrt(2). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | root_two_pi () |
| Return sqrt(2 * pi). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | third () |
| Return 1 / 3. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | three_over_two_pi () |
| Return pi / 2 * 3. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | two_over_pi () |
| Return 2 / pi. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | two_over_root_pi () |
| Return 2 / sqrt(pi). More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | two_pi () |
| Return pi * 2. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | two_thirds () |
| Return 2 / 3. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL GLM_CONSTEXPR genType | zero () |
| Return 0. More... | |
Definition in file dual_quaternion.hpp.
+Definition in file constants.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
+Typedefs | |
| typedef highp_ddualquat | ddualquat |
| Dual-quaternion of default double-precision floating-point numbers. More... | |
| typedef highp_fdualquat | dualquat |
| Dual-quaternion of floating-point numbers. More... | |
| typedef highp_fdualquat | fdualquat |
| Dual-quaternion of single-precision floating-point numbers. More... | |
| typedef tdualquat< double, highp > | highp_ddualquat |
| Dual-quaternion of high double-precision floating-point numbers. More... | |
| typedef tdualquat< float, highp > | highp_dualquat |
| Dual-quaternion of high single-precision floating-point numbers. More... | |
| typedef tdualquat< float, highp > | highp_fdualquat |
| Dual-quaternion of high single-precision floating-point numbers. More... | |
| typedef tdualquat< double, lowp > | lowp_ddualquat |
| Dual-quaternion of low double-precision floating-point numbers. More... | |
| typedef tdualquat< float, lowp > | lowp_dualquat |
| Dual-quaternion of low single-precision floating-point numbers. More... | |
| typedef tdualquat< float, lowp > | lowp_fdualquat |
| Dual-quaternion of low single-precision floating-point numbers. More... | |
| typedef tdualquat< double, mediump > | mediump_ddualquat |
| Dual-quaternion of medium double-precision floating-point numbers. More... | |
| typedef tdualquat< float, mediump > | mediump_dualquat |
| Dual-quaternion of medium single-precision floating-point numbers. More... | |
| typedef tdualquat< float, mediump > | mediump_fdualquat |
| Dual-quaternion of medium single-precision floating-point numbers. More... | |
Functions | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< bool, P > | epsilonEqual (vecType< T, P > const &x, vecType< T, P > const &y, T const &epsilon) |
| template<typename genType > | |
| GLM_FUNC_DECL bool | epsilonEqual (genType const &x, genType const &y, genType const &epsilon) |
| template<typename genType > | |
| GLM_FUNC_DECL genType::boolType | epsilonNotEqual (genType const &x, genType const &y, typename genType::value_type const &epsilon) |
| template<typename genType > | |
| GLM_FUNC_DECL bool | epsilonNotEqual (genType const &x, genType const &y, genType const &epsilon) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | dualquat_cast (tmat2x4< T, P > const &x) |
| Converts a 2 * 4 matrix (matrix which holds real and dual parts) to a quaternion. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | dualquat_cast (tmat3x4< T, P > const &x) |
| Converts a 3 * 4 matrix (augmented matrix rotation + translation) to a quaternion. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | inverse (tdualquat< T, P > const &q) |
| Returns the q inverse. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | lerp (tdualquat< T, P > const &x, tdualquat< T, P > const &y, T const &a) |
| Returns the linear interpolation of two dual quaternion. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tmat2x4< T, P > | mat2x4_cast (tdualquat< T, P > const &x) |
| Converts a quaternion to a 2 * 4 matrix. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tmat3x4< T, P > | mat3x4_cast (tdualquat< T, P > const &x) |
| Converts a quaternion to a 3 * 4 matrix. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tdualquat< T, P > | normalize (tdualquat< T, P > const &q) |
| Returns the normalized quaternion. More... | |
Definition in file epsilon.hpp.
+Definition in file dual_quaternion.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleX (T const &angleX) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleXY (T const &angleX, T const &angleY) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleXYZ (T const &t1, T const &t2, T const &t3) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleXZ (T const &angleX, T const &angleZ) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleY (T const &angleY) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleYX (T const &angleY, T const &angleX) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleYXZ (T const &yaw, T const &pitch, T const &roll) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleYZ (T const &angleY, T const &angleZ) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleZ (T const &angleZ) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleZX (T const &angle, T const &angleX) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleZY (T const &angleZ, T const &angleY) |
| template<typename T > | |
| GLM_FUNC_DECL void | extractEulerAngleXYZ (tmat4x4< T, defaultp > const &M, T &t1, T &t2, T &t3) |
| template<typename T > | |
| GLM_FUNC_DECL tmat2x2< T, defaultp > | orientate2 (T const &angle) |
| template<typename T > | |
| GLM_FUNC_DECL tmat3x3< T, defaultp > | orientate3 (T const &angle) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tmat3x3< T, P > | orientate3 (tvec3< T, P > const &angles) |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tmat4x4< T, P > | orientate4 (tvec3< T, P > const &angles) |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | yawPitchRoll (T const &yaw, T const &pitch, T const &roll) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< bool, P > | epsilonEqual (vecType< T, P > const &x, vecType< T, P > const &y, T const &epsilon) |
| Returns the component-wise comparison of |x - y| < epsilon. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL bool | epsilonEqual (genType const &x, genType const &y, genType const &epsilon) |
| Returns the component-wise comparison of |x - y| < epsilon. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType::boolType | epsilonNotEqual (genType const &x, genType const &y, typename genType::value_type const &epsilon) |
| Returns the component-wise comparison of |x - y| < epsilon. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL bool | epsilonNotEqual (genType const &x, genType const &y, genType const &epsilon) |
| Returns the component-wise comparison of |x - y| >= epsilon. More... | |
Definition in file euler_angles.hpp.
+Definition in file epsilon.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
+Functions | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleX (T const &angleX) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle X. More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleXY (T const &angleX, T const &angleY) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y). More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleXYZ (T const &t1, T const &t2, T const &t3) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y * Z). More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleXZ (T const &angleX, T const &angleZ) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z). More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleY (T const &angleY) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Y. More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleYX (T const &angleY, T const &angleX) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X). More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleYXZ (T const &yaw, T const &pitch, T const &roll) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z). More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleYZ (T const &angleY, T const &angleZ) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z). More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleZ (T const &angleZ) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Z. More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleZX (T const &angle, T const &angleX) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X). More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | eulerAngleZY (T const &angleZ, T const &angleY) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y). More... | |
| template<typename T > | |
| GLM_FUNC_DECL void | extractEulerAngleXYZ (tmat4x4< T, defaultp > const &M, T &t1, T &t2, T &t3) |
| Extracts the (X * Y * Z) Euler angles from the rotation matrix M. More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat2x2< T, defaultp > | orientate2 (T const &angle) |
| Creates a 2D 2 * 2 rotation matrix from an euler angle. More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat3x3< T, defaultp > | orientate3 (T const &angle) |
| Creates a 2D 4 * 4 homogeneous rotation matrix from an euler angle. More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tmat3x3< T, P > | orientate3 (tvec3< T, P > const &angles) |
| Creates a 3D 3 * 3 rotation matrix from euler angles (Y * X * Z). More... | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tmat4x4< T, P > | orientate4 (tvec3< T, P > const &angles) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z). More... | |
| template<typename T > | |
| GLM_FUNC_DECL tmat4x4< T, defaultp > | yawPitchRoll (T const &yaw, T const &pitch, T const &roll) |
| Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z). More... | |
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
-Functions | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | extend (genType const &Origin, genType const &Source, typename genType::value_type const Length) |
GLM Core (Dependence) +More...
-Definition in file extend.hpp.
+Go to the source code of this file.
+![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T > | |
| GLM_FUNC_DECL T | max (T const &x, T const &y, T const &z) |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z) |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | max (C< T > const &x, C< T > const &y, C< T > const &z) |
| template<typename T > | |
| GLM_FUNC_DECL T | max (T const &x, T const &y, T const &z, T const &w) |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w) |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | max (C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w) |
| template<typename T > | |
| GLM_FUNC_DECL T | min (T const &x, T const &y, T const &z) |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z) |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | min (C< T > const &x, C< T > const &y, C< T > const &z) |
| template<typename T > | |
| GLM_FUNC_DECL T | min (T const &x, T const &y, T const &z, T const &w) |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w) |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | min (C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | extend (genType const &Origin, genType const &Source, typename genType::value_type const Length) |
| Extends of Length the Origin position using the (Source - Origin) direction. More... | |
gtx_extended_min_max
-Definition in file extended_min_max.hpp.
+Definition in file extend.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastExp (T x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastExp (vecType< T, P > const &x) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastExp2 (T x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastExp2 (vecType< T, P > const &x) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastLog (T x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastLog (vecType< T, P > const &x) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastLog2 (T x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastLog2 (vecType< T, P > const &x) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastPow (genType x, genType y) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastPow (vecType< T, P > const &x, vecType< T, P > const &y) |
| template<typename genTypeT , typename genTypeU > | |
| GLM_FUNC_DECL genTypeT | fastPow (genTypeT x, genTypeU y) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastPow (vecType< T, P > const &x) |
| template<typename T > | |
| GLM_FUNC_DECL T | max (T const &x, T const &y, T const &z) |
| Return the maximum component-wise values of 3 inputs. More... | |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z) |
| Return the maximum component-wise values of 3 inputs. More... | |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | max (C< T > const &x, C< T > const &y, C< T > const &z) |
| Return the maximum component-wise values of 3 inputs. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | max (T const &x, T const &y, T const &z, T const &w) |
| Return the maximum component-wise values of 4 inputs. More... | |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w) |
| Return the maximum component-wise values of 4 inputs. More... | |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | max (C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w) |
| Return the maximum component-wise values of 4 inputs. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | min (T const &x, T const &y, T const &z) |
| Return the minimum component-wise values of 3 inputs. More... | |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z) |
| Return the minimum component-wise values of 3 inputs. More... | |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | min (C< T > const &x, C< T > const &y, C< T > const &z) |
| Return the minimum component-wise values of 3 inputs. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | min (T const &x, T const &y, T const &z, T const &w) |
| Return the minimum component-wise values of 4 inputs. More... | |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w) |
| Return the minimum component-wise values of 4 inputs. More... | |
| template<typename T , template< typename > class C> | |
| GLM_FUNC_DECL C< T > | min (C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w) |
| Return the minimum component-wise values of 4 inputs. More... | |
gtx_extended_min_max
+Definition in file fast_exponential.hpp.
+Definition in file extended_min_max.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastDistance (genType x, genType y) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL T | fastDistance (vecType< T, P > const &x, vecType< T, P > const &y) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastInverseSqrt (genType x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastInverseSqrt (vecType< T, P > const &x) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastLength (genType x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL T | fastLength (vecType< T, P > const &x) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastNormalize (genType const &x) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastSqrt (genType x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastSqrt (vecType< T, P > const &x) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastExp (T x) |
| Faster than the common exp function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastExp (vecType< T, P > const &x) |
| Faster than the common exp function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastExp2 (T x) |
| Faster than the common exp2 function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastExp2 (vecType< T, P > const &x) |
| Faster than the common exp2 function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastLog (T x) |
| Faster than the common log function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastLog (vecType< T, P > const &x) |
| Faster than the common exp2 function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastLog2 (T x) |
| Faster than the common log2 function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastLog2 (vecType< T, P > const &x) |
| Faster than the common log2 function but less accurate. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastPow (genType x, genType y) |
| Faster than the common pow function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastPow (vecType< T, P > const &x, vecType< T, P > const &y) |
| Faster than the common pow function but less accurate. More... | |
| template<typename genTypeT , typename genTypeU > | |
| GLM_FUNC_DECL genTypeT | fastPow (genTypeT x, genTypeU y) |
| Faster than the common pow function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastPow (vecType< T, P > const &x) |
| Faster than the common pow function but less accurate. More... | |
Definition in file fast_square_root.hpp.
+Definition in file fast_exponential.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastAcos (T angle) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastAsin (T angle) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastAtan (T y, T x) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastAtan (T angle) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastCos (T angle) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastSin (T angle) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastTan (T angle) |
| template<typename T > | |
| GLM_FUNC_DECL T | wrapAngle (T angle) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastDistance (genType x, genType y) |
| Faster than the common distance function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL T | fastDistance (vecType< T, P > const &x, vecType< T, P > const &y) |
| Faster than the common distance function but less accurate. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastInverseSqrt (genType x) |
| Faster than the common inversesqrt function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastInverseSqrt (vecType< T, P > const &x) |
| Faster than the common inversesqrt function but less accurate. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastLength (genType x) |
| Faster than the common length function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL T | fastLength (vecType< T, P > const &x) |
| Faster than the common length function but less accurate. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastNormalize (genType const &x) |
| Faster than the common normalize function but less accurate. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fastSqrt (genType x) |
| Faster than the common sqrt function but less accurate. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | fastSqrt (vecType< T, P > const &x) |
| Faster than the common sqrt function but less accurate. More... | |
Definition in file fast_trigonometry.hpp.
+Definition in file fast_square_root.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | abs (genType x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | ceil (vecType< T, P > const &x) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | clamp (genType x, genType minVal, genType maxVal) |
| GLM_FUNC_DECL int | floatBitsToInt (float const &v) |
| template<template< typename, precision > class vecType, precision P> | |
| GLM_FUNC_DECL vecType< int, P > | floatBitsToInt (vecType< float, P > const &v) |
| GLM_FUNC_DECL uint | floatBitsToUint (float const &v) |
| template<template< typename, precision > class vecType, precision P> | |
| GLM_FUNC_DECL vecType< uint, P > | floatBitsToUint (vecType< float, P > const &v) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | floor (vecType< T, P > const &x) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fma (genType const &a, genType const &b, genType const &c) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fract (genType x) |
| template<typename genType , typename genIType > | |
| GLM_FUNC_DECL genType | frexp (genType const &x, genIType &exp) |
| GLM_FUNC_DECL float | intBitsToFloat (int const &v) |
| template<template< typename, precision > class vecType, precision P> | |
| GLM_FUNC_DECL vecType< float, P > | intBitsToFloat (vecType< int, P > const &v) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< bool, P > | isinf (vecType< T, P > const &x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< bool, P > | isnan (vecType< T, P > const &x) |
| template<typename genType , typename genIType > | |
| GLM_FUNC_DECL genType | ldexp (genType const &x, genIType const &exp) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | max (genType x, genType y) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | min (genType x, genType y) |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | mix (vecType< T, P > const &x, vecType< T, P > const &y, vecType< U, P > const &a) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | mod (genType x, genType y) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | mod (vecType< T, P > const &x, T y) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | mod (vecType< T, P > const &x, vecType< T, P > const &y) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | modf (genType x, genType &i) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | round (vecType< T, P > const &x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | roundEven (vecType< T, P > const &x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | sign (vecType< T, P > const &x) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | smoothstep (genType edge0, genType edge1, genType x) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | step (genType edge, genType x) |
| template<template< typename, precision > class vecType, typename T , precision P> | |
| GLM_FUNC_DECL vecType< T, P > | step (T edge, vecType< T, P > const &x) |
| template<template< typename, precision > class vecType, typename T , precision P> | |
| GLM_FUNC_DECL vecType< T, P > | step (vecType< T, P > const &edge, vecType< T, P > const &x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | trunc (vecType< T, P > const &x) |
| GLM_FUNC_DECL float | uintBitsToFloat (uint const &v) |
| template<template< typename, precision > class vecType, precision P> | |
| GLM_FUNC_DECL vecType< float, P > | uintBitsToFloat (vecType< uint, P > const &v) |
| template<typename T > | |
| GLM_FUNC_DECL T | fastAcos (T angle) |
| Faster than the common acos function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastAsin (T angle) |
| Faster than the common asin function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastAtan (T y, T x) |
| Faster than the common atan function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastAtan (T angle) |
| Faster than the common atan function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastCos (T angle) |
| Faster than the common cos function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastSin (T angle) |
| Faster than the common sin function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | fastTan (T angle) |
| Faster than the common tan function but less accurate. More... | |
| template<typename T > | |
| GLM_FUNC_DECL T | wrapAngle (T angle) |
| Wrap an angle to [0 2pi[ From GLM_GTX_fast_trigonometry extension. More... | |
Definition in file func_common.hpp.
+Definition in file fast_trigonometry.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | exp (vecType< T, P > const &v) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | exp2 (vecType< T, P > const &v) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | inversesqrt (vecType< T, P > const &v) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | log (vecType< T, P > const &v) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | log2 (vecType< T, P > const &v) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | pow (vecType< T, P > const &base, vecType< T, P > const &exponent) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | sqrt (vecType< T, P > const &v) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | abs (genType x) |
| Returns x if x >= 0; otherwise, it returns -x. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | ceil (vecType< T, P > const &x) |
| Returns a value equal to the nearest integer that is greater than or equal to x. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | clamp (genType x, genType minVal, genType maxVal) |
| Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. More... | |
| GLM_FUNC_DECL int | floatBitsToInt (float const &v) |
| Returns a signed integer value representing the encoding of a floating-point value. More... | |
| template<template< typename, precision > class vecType, precision P> | |
| GLM_FUNC_DECL vecType< int, P > | floatBitsToInt (vecType< float, P > const &v) |
| Returns a signed integer value representing the encoding of a floating-point value. More... | |
| GLM_FUNC_DECL uint | floatBitsToUint (float const &v) |
| Returns a unsigned integer value representing the encoding of a floating-point value. More... | |
| template<template< typename, precision > class vecType, precision P> | |
| GLM_FUNC_DECL vecType< uint, P > | floatBitsToUint (vecType< float, P > const &v) |
| Returns a unsigned integer value representing the encoding of a floating-point value. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | floor (vecType< T, P > const &x) |
| Returns a value equal to the nearest integer that is less then or equal to x. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fma (genType const &a, genType const &b, genType const &c) |
| Computes and returns a * b + c. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | fract (genType x) |
| Return x - floor(x). More... | |
| template<typename genType , typename genIType > | |
| GLM_FUNC_DECL genType | frexp (genType const &x, genIType &exp) |
| Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two, such that: x = significand * exp(2, exponent) More... | |
| GLM_FUNC_DECL float | intBitsToFloat (int const &v) |
| Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. More... | |
| template<template< typename, precision > class vecType, precision P> | |
| GLM_FUNC_DECL vecType< float, P > | intBitsToFloat (vecType< int, P > const &v) |
| Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< bool, P > | isinf (vecType< T, P > const &x) |
| Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< bool, P > | isnan (vecType< T, P > const &x) |
| Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations. More... | |
| template<typename genType , typename genIType > | |
| GLM_FUNC_DECL genType | ldexp (genType const &x, genIType const &exp) |
| Builds a floating-point number from x and the corresponding integral exponent of two in exp, returning: significand * exp(2, exponent) More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | max (genType x, genType y) |
| Returns y if x < y; otherwise, it returns x. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | min (genType x, genType y) |
| Returns y if y < x; otherwise, it returns x. More... | |
| template<typename T , typename U , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | mix (vecType< T, P > const &x, vecType< T, P > const &y, vecType< U, P > const &a) |
| If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | mod (genType x, genType y) |
| Modulus. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | mod (vecType< T, P > const &x, T y) |
| Modulus. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | mod (vecType< T, P > const &x, vecType< T, P > const &y) |
| Modulus. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | modf (genType x, genType &i) |
| Returns the fractional part of x and sets i to the integer part (as a whole number floating point value). More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | round (vecType< T, P > const &x) |
| Returns a value equal to the nearest integer to x. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | roundEven (vecType< T, P > const &x) |
| Returns a value equal to the nearest integer to x. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | sign (vecType< T, P > const &x) |
| Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | smoothstep (genType edge0, genType edge1, genType x) |
| Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1. More... | |
| template<typename genType > | |
| GLM_FUNC_DECL genType | step (genType edge, genType x) |
| Returns 0.0 if x < edge, otherwise it returns 1.0 for each component of a genType. More... | |
| template<template< typename, precision > class vecType, typename T , precision P> | |
| GLM_FUNC_DECL vecType< T, P > | step (T edge, vecType< T, P > const &x) |
| Returns 0.0 if x < edge, otherwise it returns 1.0. More... | |
| template<template< typename, precision > class vecType, typename T , precision P> | |
| GLM_FUNC_DECL vecType< T, P > | step (vecType< T, P > const &edge, vecType< T, P > const &x) |
| Returns 0.0 if x < edge, otherwise it returns 1.0. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | trunc (vecType< T, P > const &x) |
| Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x. More... | |
| GLM_FUNC_DECL float | uintBitsToFloat (uint const &v) |
| Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. More... | |
| template<template< typename, precision > class vecType, precision P> | |
| GLM_FUNC_DECL vecType< float, P > | uintBitsToFloat (vecType< uint, P > const &v) |
| Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. More... | |
Definition in file func_exponential.hpp.
+Definition in file func_common.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
Functions | |
| template<typename T , precision P> | |
| GLM_FUNC_DECL tvec3< T, P > | cross (tvec3< T, P > const &x, tvec3< T, P > const &y) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL T | distance (vecType< T, P > const &p0, vecType< T, P > const &p1) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL T | dot (vecType< T, P > const &x, vecType< T, P > const &y) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | faceforward (vecType< T, P > const &N, vecType< T, P > const &I, vecType< T, P > const &Nref) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL T | length (vecType< T, P > const &x) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | normalize (vecType< T, P > const &x) |
| template<typename genType > | |
| GLM_FUNC_DECL genType | reflect (genType const &I, genType const &N) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | refract (vecType< T, P > const &I, vecType< T, P > const &N, T eta) |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | exp (vecType< T, P > const &v) |
| Returns the natural exponentiation of x, i.e., e^x. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | exp2 (vecType< T, P > const &v) |
| Returns 2 raised to the v power. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | inversesqrt (vecType< T, P > const &v) |
| Returns the reciprocal of the positive square root of v. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | log (vecType< T, P > const &v) |
| Returns the natural logarithm of v, i.e., returns the value y which satisfies the equation x = e^y. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | log2 (vecType< T, P > const &v) |
| Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | pow (vecType< T, P > const &base, vecType< T, P > const &exponent) |
| Returns 'base' raised to the power 'exponent'. More... | |
| template<typename T , precision P, template< typename, precision > class vecType> | |
| GLM_FUNC_DECL vecType< T, P > | sqrt (vecType< T, P > const &v) |
| Returns the positive square root of v. More... | |
Definition in file func_geometric.hpp.
+Definition in file func_exponential.hpp.
![]() |
+ ![]() |
- 0.9.8
+ 0.9.9 API documenation
|
![]() |
+ ![]() |
- 0.9.8
+ |