1
0

mat2x4.h 756 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (c), Recep Aslantas.
  3. *
  4. * MIT License (MIT), http://opensource.org/licenses/MIT
  5. * Full license can be found in the LICENSE file
  6. */
  7. #ifndef cglmc_mat2x4_h
  8. #define cglmc_mat2x4_h
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #include "../cglm.h"
  13. CGLM_EXPORT
  14. void
  15. glmc_mat2x4_copy(mat2x4 mat, mat2x4 dest);
  16. CGLM_EXPORT
  17. void
  18. glmc_mat2x4_zero(mat2x4 mat);
  19. CGLM_EXPORT
  20. void
  21. glmc_mat2x4_make(const float * __restrict src, mat2x4 dest);
  22. CGLM_EXPORT
  23. void
  24. glmc_mat2x4_mul(mat2x4 m1, mat4x2 m2, mat4 dest);
  25. CGLM_EXPORT
  26. void
  27. glmc_mat2x4_mulv(mat2x4 m, vec2 v, vec4 dest);
  28. CGLM_EXPORT
  29. void
  30. glmc_mat2x4_transpose(mat2x4 m, mat4x2 dest);
  31. CGLM_EXPORT
  32. void
  33. glmc_mat2x4_scale(mat2x4 m, float s);
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif /* cglmc_mat2x4_h */