bezier.h 566 B

12345678910111213141516171819202122232425262728293031
  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_bezier_h
  8. #define cglmc_bezier_h
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #include "../cglm.h"
  13. CGLM_EXPORT
  14. float
  15. glmc_bezier(float s, float p0, float c0, float c1, float p1);
  16. CGLM_EXPORT
  17. float
  18. glmc_hermite(float s, float p0, float t0, float t1, float p1);
  19. CGLM_EXPORT
  20. float
  21. glmc_decasteljau(float prm, float p0, float c0, float c1, float p1);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /* cglmc_bezier_h */