glm::core::func_geometric Namespace Reference

Geometric functions (Section 8.4 of GLSL 1.20.8 specification). More...


Functions

template<typename T>
detail::_xvec3< T > cross (const detail::_xvec3< T > &x, const detail::_xvec3< T > &y)
 brief Returns the cross product of x and y. (From GLSL 1.10.59 specification)
template<typename T>
distance (const detail::_xvec4< T > &p0, const detail::_xvec4< T > &p1)
 Returns the distance betwwen p0 and p1, i.e., length(p0 - p1). (From GLSL 1.10.59 specification).
template<typename T>
distance (const detail::_xvec3< T > &p0, const detail::_xvec3< T > &p1)
 Returns the distance betwwen p0 and p1, i.e., length(p0 - p1). (From GLSL 1.10.59 specification).
template<typename T>
distance (const detail::_xvec2< T > &p0, const detail::_xvec2< T > &p1)
 Returns the distance betwwen p0 and p1, i.e., length(p0 - p1). (From GLSL 1.10.59 specification).
template<typename T>
distance (const T p0, const T p1)
 Returns the distance betwwen p0 and p1, i.e., length(p0 - p1). (From GLSL 1.10.59 specification).
template<typename T>
dot (const detail::_xvec4< T > &x, const detail::_xvec4< T > &y)
 Returns the dot product of x and y, i.e., result = x[0] * y[0] + x[1] * y[1] + x[2] * y[2] + x[3] * y[3]. (From GLSL 1.10.59 specification).
template<typename T>
dot (const detail::_xvec3< T > &x, const detail::_xvec3< T > &y)
 Returns the dot product of x and y, i.e., result = x[0] * y[0] + x[1] * y[1] + x[2] * y[2]. (From GLSL 1.10.59 specification).
template<typename T>
dot (const detail::_xvec2< T > &x, const detail::_xvec2< T > &y)
 Returns the dot product of x and y, i.e., result = x[0] * y[0] + x[1] * y[1]. (From GLSL 1.10.59 specification).
template<typename T>
dot (T v1, T v2)
 Returns the dot product of x and y, i.e., result = x * y. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec4< T > faceforward (const detail::_xvec4< T > &N, const detail::_xvec4< T > &I, const detail::_xvec4< T > &Nref)
 If dot(Nref, I) < 0.0, return N, otherwise, return -N. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec3< T > faceforward (const detail::_xvec3< T > &N, const detail::_xvec3< T > &I, const detail::_xvec3< T > &Nref)
 If dot(Nref, I) < 0.0, return N, otherwise, return -N. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec2< T > faceforward (const detail::_xvec2< T > &N, const detail::_xvec2< T > &I, const detail::_xvec2< T > &Nref)
 If dot(Nref, I) < 0.0, return N, otherwise, return -N. (From GLSL 1.10.59 specification).
template<typename T>
faceforward (T N, T I, T Nref)
 If dot(Nref, I) < 0.0, return N, otherwise, return -N. (From GLSL 1.10.59 specification).
template<typename T>
length (const detail::_xvec4< T > &x)
 Returns the length of x, i.e., sqrt(x[0] * x[0] + x[1] * x[1] + x[2] * x[2] + x[3] * x[3]). (From GLSL 1.10.59 specification).
template<typename T>
length (const detail::_xvec3< T > &x)
 Returns the length of x, i.e., sqrt(x[0] * x[0] + x[1] * x[1] + x[2] * x[2]). (From GLSL 1.10.59 specification).
template<typename T>
length (const detail::_xvec2< T > &x)
 Returns the length of x, i.e., sqrt(x[0] * x[0] + x[1] * x[1]). (From GLSL 1.10.59 specification).
template<typename T>
length (T x)
 Returns the length of x, i.e., sqrt(x * x). (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec4< T > normalize (const detail::_xvec4< T > &x)
 Returns a vector in the same direction as x but with length of 1. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec3< T > normalize (const detail::_xvec3< T > &x)
 Returns a vector in the same direction as x but with length of 1. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec2< T > normalize (const detail::_xvec2< T > &x)
 Returns a vector in the same direction as x but with length of 1. (From GLSL 1.10.59 specification).
template<typename T>
normalize (T x)
 Returns a vector in the same direction as x but with length of 1. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec4< T > reflect (const detail::_xvec4< T > &I, const detail::_xvec4< T > &N)
 For the incident vector I and surface orientation N, returns the reflection direction : result = I - 2.0 * dot(N, I) * N. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec3< T > reflect (const detail::_xvec3< T > &I, const detail::_xvec3< T > &N)
 For the incident vector I and surface orientation N, returns the reflection direction : result = I - 2.0 * dot(N, I) * N. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec2< T > reflect (const detail::_xvec2< T > &I, const detail::_xvec2< T > &N)
 For the incident vector I and surface orientation N, returns the reflection direction : result = I - 2.0 * dot(N, I) * N. (From GLSL 1.10.59 specification).
template<typename T>
reflect (T I, T N)
 For the incident vector I and surface orientation N, returns the reflection direction : result = I - 2.0 * dot(N, I) * N. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec4< T > refract (const detail::_xvec4< T > &I, const detail::_xvec4< T > &N, T eta)
 For the incident vector I and surface normal N, and the ratio of indices of refraction eta, return the refraction vector. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec3< T > refract (const detail::_xvec3< T > &I, const detail::_xvec3< T > &N, T eta)
 For the incident vector I and surface normal N, and the ratio of indices of refraction eta, return the refraction vector. (From GLSL 1.10.59 specification).
template<typename T>
detail::_xvec2< T > refract (const detail::_xvec2< T > &I, const detail::_xvec2< T > &N, T eta)
 For the incident vector I and surface normal N, and the ratio of indices of refraction eta, return the refraction vector. (From GLSL 1.10.59 specification).
template<typename T>
refract (T I, T N, T eta)
 For the incident vector I and surface normal N, and the ratio of indices of refraction eta, return the refraction vector. (From GLSL 1.10.59 specification).


Detailed Description

Geometric functions (Section 8.4 of GLSL 1.20.8 specification).

Generated on Sat Aug 9 15:48:37 2008 for OpenGL Mathematics by  doxygen 1.5.5