- Main Page
- Related Pages
- Modules
- Classes
- Files

Functions
GLM_GTC_swizzle: Swizzle 'operator' implementation
GTC Extensions (Stable)

## Functions
template<typename T , template< typename > class vecType>
detail::tvec2< T > const & | swizzle (vecType< T > const &v, comp x, comp y)

## Detailed Description

Provide functions to emulate GLSL swizzle operator fonctionalities.

<glm/gtc/swizzle.hpp> need to be included to use these functionalities.

## Function Documentation

detail::tvec2<T> const& glm::swizzle | ( | vecType< T > const & | v,
|  | comp | x,
|  | comp | y
| ) |  |

Parameters:

  v | Vector source
  x |

Template Parameters:

  T |
  vecType |

See also:
  GLM_GTC_swizzle: Swizzle 'operator' implementation