gtx_range Module Reference

Include < glm/gtx/range.hpp > to use the features of this extension.

Defines begin and end for vectors and matrices. Useful for range-based for loop. The range is defined over the elements, not over columns or rows (e.g. mat4 has 16 elements).


Public Member Functions

  • length_t
    components (vec< 1, T, Q > const &v)
  • length_t
    components (vec< 2, T, Q > const &v)
  • length_t
    components (vec< 3, T, Q > const &v)
  • length_t
    components (vec< 4, T, Q > const &v)
  • length_t
    components (genType const &m)
  • genType::value_type const *
    begin (genType const &v)
  • genType::value_type const *
    end (genType const &v)
  • genType::value_type *
    begin (genType &v)
  • genType::value_type *
    end (genType &v)