vec3-ext.rst 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .. default-domain:: C
  2. vec3 extra
  3. ==========
  4. Header: cglm/vec3-ext.h
  5. There are some functions are in called in extra header. These are called extra
  6. because they are not used like other functions in vec3.h in the future some of
  7. these functions ma be moved to vec3 header.
  8. Table of contents (click to go):
  9. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10. Functions:
  11. 1. :c:func:`glm_vec_mulv`
  12. #. :c:func:`glm_vec_broadcast`
  13. #. :c:func:`glm_vec_eq`
  14. #. :c:func:`glm_vec_eq_eps`
  15. #. :c:func:`glm_vec_eq_all`
  16. #. :c:func:`glm_vec_eqv`
  17. #. :c:func:`glm_vec_eqv_eps`
  18. #. :c:func:`glm_vec_max`
  19. #. :c:func:`glm_vec_min`
  20. Functions documentation
  21. ~~~~~~~~~~~~~~~~~~~~~~~
  22. .. c:function:: void glm_vec_mulv(vec3 a, vec3 b, vec3 d)
  23. multiplies individual items
  24. Parameters:
  25. | *[in]* **a** vec1
  26. | *[in]* **b** vec2
  27. | *[out]* **d** destination (v1[0] * v2[0], v1[1] * v2[1], v1[2] * v2[2])
  28. .. c:function:: void glm_vec_broadcast(float val, vec3 d)
  29. fill a vector with specified value
  30. Parameters:
  31. | *[in]* **val** value
  32. | *[out]* **dest** destination
  33. .. c:function:: bool glm_vec_eq(vec3 v, float val)
  34. check if vector is equal to value (without epsilon)
  35. Parameters:
  36. | *[in]* **v** vector
  37. | *[in]* **val** value
  38. .. c:function:: bool glm_vec_eq_eps(vec3 v, float val)
  39. check if vector is equal to value (with epsilon)
  40. Parameters:
  41. | *[in]* **v** vector
  42. | *[in]* **val** value
  43. .. c:function:: bool glm_vec_eq_all(vec3 v)
  44. check if vectors members are equal (without epsilon)
  45. Parameters:
  46. | *[in]* **v** vector
  47. .. c:function:: bool glm_vec_eqv(vec3 v1, vec3 v2)
  48. check if vector is equal to another (without epsilon) vector
  49. Parameters:
  50. | *[in]* **vec** vector 1
  51. | *[in]* **vec** vector 2
  52. .. c:function:: bool glm_vec_eqv_eps(vec3 v1, vec3 v2)
  53. check if vector is equal to another (with epsilon)
  54. Parameters:
  55. | *[in]* **v1** vector1
  56. | *[in]* **v2** vector2
  57. .. c:function:: float glm_vec_max(vec3 v)
  58. max value of vector
  59. Parameters:
  60. | *[in]* **v** vector
  61. .. c:function:: float glm_vec_min(vec3 v)
  62. min value of vector
  63. Parameters:
  64. | *[in]* **v** vector