mat4x3.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_mat4x3_h
  8. #define cglmc_mat4x3_h
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #include "../cglm.h"
  13. CGLM_EXPORT
  14. void
  15. glmc_mat4x3_copy(mat4x3 mat, mat4x3 dest);
  16. CGLM_EXPORT
  17. void
  18. glmc_mat4x3_zero(mat4x3 mat);
  19. CGLM_EXPORT
  20. void
  21. glmc_mat4x3_make(const float * __restrict src, mat4x3 dest);
  22. CGLM_EXPORT
  23. void
  24. glmc_mat4x3_mul(mat4x3 m1, mat3x4 m2, mat3 dest);
  25. CGLM_EXPORT
  26. void
  27. glmc_mat4x3_mulv(mat4x3 m, vec4 v, vec3 dest);
  28. CGLM_EXPORT
  29. void
  30. glmc_mat4x3_transpose(mat4x3 m, mat3x4 dest);
  31. CGLM_EXPORT
  32. void
  33. glmc_mat4x3_scale(mat4x3 m, float s);
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif /* cglmc_mat4x3_h */