30 template<
typename genType>
31 GLM_FUNC_DECL genType
abs(genType x);
41 template<length_t L,
typename T, qualifier P>
42 GLM_FUNC_DECL vec<L, T, P>
abs(vec<L, T, P>
const& x);
52 template<length_t L,
typename T, qualifier P>
53 GLM_FUNC_DECL vec<L, T, P>
sign(vec<L, T, P>
const& x);
63 template<length_t L,
typename T, qualifier P>
64 GLM_FUNC_DECL vec<L, T, P>
floor(vec<L, T, P>
const& x);
75 template<length_t L,
typename T, qualifier P>
76 GLM_FUNC_DECL vec<L, T, P>
trunc(vec<L, T, P>
const& x);
90 template<length_t L,
typename T, qualifier P>
91 GLM_FUNC_DECL vec<L, T, P>
round(vec<L, T, P>
const& x);
104 template<length_t L,
typename T, qualifier P>
105 GLM_FUNC_DECL vec<L, T, P>
roundEven(vec<L, T, P>
const& x);
116 template<length_t L,
typename T, qualifier P>
117 GLM_FUNC_DECL vec<L, T, P>
ceil(vec<L, T, P>
const& x);
125 template<
typename genType>
126 GLM_FUNC_DECL genType
fract(genType x);
136 template<length_t L,
typename T, qualifier P>
137 GLM_FUNC_DECL vec<L, T, P>
fract(vec<L, T, P>
const& x);
146 template<
typename genType>
147 GLM_FUNC_DECL genType
mod(genType x, genType y);
158 template<length_t L,
typename T, qualifier P>
159 GLM_FUNC_DECL vec<L, T, P>
mod(vec<L, T, P>
const& x, T y);
170 template<length_t L,
typename T, qualifier P>
171 GLM_FUNC_DECL vec<L, T, P>
mod(vec<L, T, P>
const& x, vec<L, T, P>
const& y);
182 template<
typename genType>
183 GLM_FUNC_DECL genType
modf(genType x, genType& i);
191 template<
typename genType>
192 GLM_FUNC_DECL genType
min(genType x, genType y);
202 template<length_t L,
typename T, qualifier P>
203 GLM_FUNC_DECL vec<L, T, P>
min(vec<L, T, P>
const& x, T y);
213 template<length_t L,
typename T, qualifier P>
214 GLM_FUNC_DECL vec<L, T, P>
min(vec<L, T, P>
const& x, vec<L, T, P>
const& y);
222 template<
typename genType>
223 GLM_FUNC_DECL genType
max(genType x, genType y);
233 template<length_t L,
typename T, qualifier P>
234 GLM_FUNC_DECL vec<L, T, P>
max(vec<L, T, P>
const& x, T y);
244 template<length_t L,
typename T, qualifier P>
245 GLM_FUNC_DECL vec<L, T, P>
max(vec<L, T, P>
const& x, vec<L, T, P>
const& y);
254 template<
typename genType>
255 GLM_FUNC_DECL genType
clamp(genType x, genType minVal, genType maxVal);
266 template<length_t L,
typename T, qualifier P>
267 GLM_FUNC_DECL vec<L, T, P>
clamp(vec<L, T, P>
const & x, T minVal, T maxVal);
278 template<length_t L,
typename T, qualifier P>
279 GLM_FUNC_DECL vec<L, T, P>
clamp(vec<L, T, P>
const& x, vec<L, T, P>
const& minVal, vec<L, T, P>
const& maxVal);
323 template<
typename genTypeT,
typename genTypeU>
324 GLM_FUNC_DECL genTypeT
mix(genTypeT x, genTypeT y, genTypeU a);
326 template<length_t L,
typename T,
typename U, qualifier P>
327 GLM_FUNC_DECL vec<L, T, P>
mix(vec<L, T, P>
const& x, vec<L, T, P>
const& y, vec<L, U, P>
const& a);
329 template<length_t L,
typename T,
typename U, qualifier P>
330 GLM_FUNC_DECL vec<L, T, P>
mix(vec<L, T, P>
const& x, vec<L, T, P>
const& y, U a);
336 template<
typename genType>
337 GLM_FUNC_DECL genType
step(genType edge, genType x);
347 template<length_t L,
typename T, qualifier P>
348 GLM_FUNC_DECL vec<L, T, P>
step(T edge, vec<L, T, P>
const& x);
358 template<length_t L,
typename T, qualifier P>
359 GLM_FUNC_DECL vec<L, T, P>
step(vec<L, T, P>
const& edge, vec<L, T, P>
const& x);
375 template<
typename genType>
376 GLM_FUNC_DECL genType
smoothstep(genType edge0, genType edge1, genType x);
378 template<length_t L,
typename T, qualifier P>
379 GLM_FUNC_DECL vec<L, T, P>
smoothstep(T edge0, T edge1, vec<L, T, P>
const& x);
381 template<length_t L,
typename T, qualifier P>
382 GLM_FUNC_DECL vec<L, T, P>
smoothstep(vec<L, T, P>
const& edge0, vec<L, T, P>
const& edge1, vec<L, T, P>
const& x);
398 template<length_t L,
typename T, qualifier P>
399 GLM_FUNC_DECL vec<L, bool, P>
isnan(vec<L, T, P>
const& x);
413 template<length_t L,
typename T, qualifier P>
414 GLM_FUNC_DECL vec<L, bool, P>
isinf(vec<L, T, P>
const& x);
433 template<length_t L, qualifier P>
434 GLM_FUNC_DECL vec<L, int, P>
floatBitsToInt(vec<L, float, P>
const& v);
453 template<length_t L, qualifier P>
454 GLM_FUNC_DECL vec<L, uint, P>
floatBitsToUint(vec<L, float, P>
const& v);
477 template<length_t L, qualifier P>
478 GLM_FUNC_DECL vec<L, float, P>
intBitsToFloat(vec<L, int, P>
const& v);
501 template<length_t L, qualifier P>
502 GLM_FUNC_DECL vec<L, float, P>
uintBitsToFloat(vec<L, uint, P>
const& v);
510 template<
typename genType>
511 GLM_FUNC_DECL genType
fma(genType
const& a, genType
const& b, genType
const& c);
527 template<
typename genType,
typename genIType>
528 GLM_FUNC_DECL genType
frexp(genType
const& x, genIType&
exp);
541 template<
typename genType,
typename genIType>
542 GLM_FUNC_DECL genType
ldexp(genType
const& x, genIType
const&
exp);
547 #include "func_common.inl"
GLM_FUNC_DECL vec< L, T, P > abs(vec< L, T, P > const &x)
Returns x if x >= 0; otherwise, it returns -x.
GLM_FUNC_DECL vec< L, T, P > exp(vec< L, T, P > const &v)
Returns the natural exponentiation of x, i.e., e^x.
GLM_FUNC_DECL vec< L, float, P > intBitsToFloat(vec< L, int, P > const &v)
Returns a floating-point value corresponding to a signed integer encoding of a floating-point value...
GLM_FUNC_DECL vec< L, T, P > fract(vec< L, T, P > const &x)
Return x - floor(x).
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...
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 a...
GLM_FUNC_DECL vec< L, T, P > mod(vec< L, T, P > const &x, vec< L, T, P > const &y)
Modulus.
GLM_FUNC_DECL genTypeT mix(genTypeT x, genTypeT y, genTypeU a)
If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of ...
GLM_FUNC_DECL vec< L, T, P > clamp(vec< L, T, P > const &x, vec< L, T, P > const &minVal, vec< L, T, P > const &maxVal)
Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...
GLM_FUNC_DECL vec< L, T, P > round(vec< L, T, P > const &x)
Returns a value equal to the nearest integer to x.
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 val...
GLM_FUNC_DECL vec< L, bool, P > isnan(vec< L, T, P > const &x)
Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of...
GLM_FUNC_DECL vec< L, T, P > min(vec< L, T, P > const &x, vec< L, T, P > const &y)
Returns y if y < x; otherwise, it returns x.
GLM_FUNC_DECL vec< L, T, P > sign(vec< L, T, P > const &x)
Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0.
GLM_FUNC_DECL vec< L, T, P > ceil(vec< L, T, P > const &x)
Returns a value equal to the nearest integer that is greater than or equal to x.
GLM_FUNC_DECL vec< L, T, P > trunc(vec< L, T, P > const &x)
Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolut...
GLM_FUNC_DECL vec< L, T, P > max(vec< L, T, P > const &x, vec< L, T, P > const &y)
Returns y if x < y; otherwise, it returns x.
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...
GLM_FUNC_DECL vec< L, T, P > floor(vec< L, T, P > const &x)
Returns a value equal to the nearest integer that is less then or equal to x.
GLM_FUNC_DECL vec< L, T, P > step(vec< L, T, P > const &edge, vec< L, T, P > const &x)
Returns 0.0 if x < edge, otherwise it returns 1.0.
GLM_FUNC_DECL vec< L, uint, P > floatBitsToUint(vec< L, float, P > const &v)
Returns a unsigned integer value representing the encoding of a floating-point value.
GLM_FUNC_DECL vec< L, T, P > roundEven(vec< L, T, P > const &x)
Returns a value equal to the nearest integer to x.
GLM_FUNC_DECL genType fma(genType const &a, genType const &b, genType const &c)
Computes and returns a * b + c.
GLM_FUNC_DECL vec< L, int, P > floatBitsToInt(vec< L, float, P > const &v)
Returns a signed integer value representing the encoding of a floating-point value.
GLM_FUNC_DECL vec< L, bool, P > isinf(vec< L, T, P > const &x)
Returns true if x holds a positive infinity or negative infinity representation in the underlying imp...
GLM_FUNC_DECL vec< L, float, P > uintBitsToFloat(vec< L, uint, P > const &v)
Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value...
unsigned int uint
Unsigned integer type.