Functions
func_common.hpp File Reference

Go to the source code of this file.

Functions

template<typename genType >
genType abs (genType const &x)
 
template<typename genType >
genType ceil (genType const &x)
 
template<typename genType >
genType clamp (genType const &x, genType const &minVal, genType const &maxVal)
 
template<typename genType , typename genIType >
genIType floatBitsToInt (genType const &value)
 
template<typename genType , typename genUType >
genUType floatBitsToUint (genType const &value)
 
template<typename genType >
genType floor (genType const &x)
 
template<typename genType >
genType fma (genType const &a, genType const &b, genType const &c)
 
template<typename genType >
genType fract (genType const &x)
 
template<typename genType , typename genIType >
genType frexp (genType const &x, genIType &exp)
 
template<typename genType , typename genIType >
genType intBitsToFloat (genIType const &value)
 
template<typename genType >
genType::bool_type isinf (genType const &x)
 
template<typename genType >
genType::bool_type isnan (genType const &x)
 
template<typename genType , typename genIType >
genType ldexp (genType const &x, genIType const &exp)
 
template<typename genType >
genType max (genType const &x, genType const &y)
 
template<typename genType >
genType min (genType const &x, genType const &y)
 
template<typename genTypeT , typename genTypeU >
genTypeT mix (genTypeT const &x, genTypeT const &y, genTypeU const &a)
 
template<typename genType >
genType mod (genType const &x, genType const &y)
 
template<typename genType >
genType mod (genType const &x, typename genType::value_type const &y)
 
template<typename genType >
genType modf (genType const &x, genType &i)
 
template<typename genType >
genType round (genType const &x)
 
template<typename genType >
genType roundEven (genType const &x)
 
template<typename genType >
genType sign (genType const &x)
 
template<typename genType >
genType smoothstep (genType const &edge0, genType const &edge1, genType const &x)
 
template<typename genType >
genType step (genType const &edge, genType const &x)
 
template<typename genType >
genType trunc (genType const &x)
 
template<typename genType , typename genUType >
genType uintBitsToFloat (genUType const &value)
 

Detailed Description

OpenGL Mathematics (glm.g-truc.net)

Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net) 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.

GLM Core

Date
2008-03-08 / 2010-01-26
Author
Christophe Riccio
See Also
GLSL 4.20.8 specification, section 8.3 Common Functions

Definition in file func_common.hpp.