Back to Mame

0.9.8: func_exponential.hpp Source File

3rdparty/glm/doc/api/a00030_source.html

latest4.1 KB
Original Source

| | 0.9.8 |

func_exponential.hpp

Go to the documentation of this file.

1

11 #pragma once

12

13 #include "type_vec1.hpp"

14 #include "type_vec2.hpp"

15 #include "type_vec3.hpp"

16 #include "type_vec4.hpp"

17 #include <cmath>

18

19 namespace glm

20 {

23

32template <typename T, precision P, template <typename, precision> class vecType>

33 GLM_FUNC_DECL vecType<T, P> pow(vecType<T, P> const & base, vecType<T, P> const & exponent);

34

42template <typename T, precision P, template <typename, precision> class vecType>

43 GLM_FUNC_DECL vecType<T, P> exp(vecType<T, P> const & v);

44

54template <typename T, precision P, template <typename, precision> class vecType>

55 GLM_FUNC_DECL vecType<T, P> log(vecType<T, P> const & v);

56

64template <typename T, precision P, template <typename, precision> class vecType>

65 GLM_FUNC_DECL vecType<T, P> exp2(vecType<T, P> const & v);

66

75template <typename T, precision P, template <typename, precision> class vecType>

76 GLM_FUNC_DECL vecType<T, P> log2(vecType<T, P> const & v);

77

85//template <typename genType>

86//GLM_FUNC_DECL genType sqrt(genType const & x);

87template <typename T, precision P, template <typename, precision> class vecType>

88 GLM_FUNC_DECL vecType<T, P> sqrt(vecType<T, P> const & v);

89

97template <typename T, precision P, template <typename, precision> class vecType>

98 GLM_FUNC_DECL vecType<T, P> inversesqrt(vecType<T, P> const & v);

99

101 }//namespace glm

102

103 #include "func_exponential.inl"

glm::pow

GLM_FUNC_DECL vecType< T, P > pow(vecType< T, P > const &base, vecType< T, P > const &exponent)

Returns 'base' raised to the power 'exponent'.

type_vec3.hpp

GLM Core

glm::log

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...

glm::exp2

GLM_FUNC_DECL vecType< T, P > exp2(vecType< T, P > const &v)

Returns 2 raised to the v power.

glm

Definition: _noise.hpp:11

type_vec2.hpp

GLM Core

glm::log2

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...

glm::sqrt

GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &v)

Returns the positive square root of v.

type_vec4.hpp

GLM Core

glm::exp

GLM_FUNC_DECL vecType< T, P > exp(vecType< T, P > const &v)

Returns the natural exponentiation of x, i.e., e^x.

type_vec1.hpp

GLM Core

glm::inversesqrt

GLM_FUNC_DECL vecType< T, P > inversesqrt(vecType< T, P > const &v)

Returns the reciprocal of the positive square root of v.


Generated by 1.8.10