core_func_common Module Reference

Provides GLSL common functions

These all operate component-wise. The description is per component.

Include < glm/common.hpp > to use these core features.


Public Member Functions

  • GLM_FUNC_DECL genType
    mod (genType x, genType y)
  • GLM_FUNC_DECL vec< L, T, Q >
    mod (vec< L, T, Q > const &x, T y)
  • GLM_FUNC_DECL vec< L, T, Q >
    mix (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, U, Q > const &a)
  • GLM_FUNC_DECL vec< L, T, Q >
    mix (vec< L, T, Q > const &x, vec< L, T, Q > const &y, U a)
  • GLM_FUNC_DECL vec< L, T, Q >
    smoothstep (T edge0, T edge1, vec< L, T, Q > const &x)
  • GLM_FUNC_DECL vec< L, T, Q >
    smoothstep (vec< L, T, Q > const &edge0, vec< L, T, Q > const &edge1, vec< L, T, Q > const &x)
  • GLM_FUNC_DECL vec< L, T, Q >
    frexp (vec< L, T, Q > const &v, vec< L, int, Q > &exp)
  • GLM_FUNC_DECL vec< L, T, Q >
    ldexp (vec< L, T, Q > const &v, vec< L, int, Q > const &exp)