1
0

mat3x2.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_mat3x2_h
  8. #define cglmc_mat3x2_h
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #include "../cglm.h"
  13. CGLM_EXPORT
  14. void
  15. glmc_mat3x2_copy(mat3x2 mat, mat3x2 dest);
  16. CGLM_EXPORT
  17. void
  18. glmc_mat3x2_zero(mat3x2 mat);
  19. CGLM_EXPORT
  20. void
  21. glmc_mat3x2_make(const float * __restrict src, mat3x2 dest);
  22. CGLM_EXPORT
  23. void
  24. glmc_mat3x2_mul(mat3x2 m1, mat2x3 m2, mat2 dest);
  25. CGLM_EXPORT
  26. void
  27. glmc_mat3x2_mulv(mat3x2 m, vec3 v, vec2 dest);
  28. CGLM_EXPORT
  29. void
  30. glmc_mat3x2_transpose(mat3x2 m, mat2x3 dest);
  31. CGLM_EXPORT
  32. void
  33. glmc_mat3x2_scale(mat3x2 m, float s);
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif /* cglmc_mat3x2_h */