transform.inl 569 B

1234567891011121314151617181920212223
  1. /// @ref gtx_transform
  2. namespace glm
  3. {
  4. template<typename T, qualifier Q>
  5. GLM_FUNC_QUALIFIER mat<4, 4, T, Q> translate(vec<3, T, Q> const& v)
  6. {
  7. return translate(mat<4, 4, T, Q>(static_cast<T>(1)), v);
  8. }
  9. template<typename T, qualifier Q>
  10. GLM_FUNC_QUALIFIER mat<4, 4, T, Q> rotate(T angle, vec<3, T, Q> const& v)
  11. {
  12. return rotate(mat<4, 4, T, Q>(static_cast<T>(1)), angle, v);
  13. }
  14. template<typename T, qualifier Q>
  15. GLM_FUNC_QUALIFIER mat<4, 4, T, Q> scale(vec<3, T, Q> const& v)
  16. {
  17. return scale(mat<4, 4, T, Q>(static_cast<T>(1)), v);
  18. }
  19. }//namespace glm