1
0

sphere.h 608 B

123456789101112131415161718192021222324252627282930313233343536373839
  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_sphere_h
  8. #define cglmc_sphere_h
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #include "../cglm.h"
  13. CGLM_EXPORT
  14. float
  15. glmc_sphere_radii(vec4 s);
  16. CGLM_EXPORT
  17. void
  18. glmc_sphere_transform(vec4 s, mat4 m, vec4 dest);
  19. CGLM_EXPORT
  20. void
  21. glmc_sphere_merge(vec4 s1, vec4 s2, vec4 dest);
  22. CGLM_EXPORT
  23. bool
  24. glmc_sphere_sphere(vec4 s1, vec4 s2);
  25. CGLM_EXPORT
  26. bool
  27. glmc_sphere_point(vec4 s, vec3 point);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* cglmc_sphere_h */