ease.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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_ease_h
  8. #define cglmc_ease_h
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #include "../cglm.h"
  13. CGLM_EXPORT
  14. float
  15. glmc_ease_linear(float t);
  16. CGLM_EXPORT
  17. float
  18. glmc_ease_sine_in(float t);
  19. CGLM_EXPORT
  20. float
  21. glmc_ease_sine_out(float t);
  22. CGLM_EXPORT
  23. float
  24. glmc_ease_sine_inout(float t);
  25. CGLM_EXPORT
  26. float
  27. glmc_ease_quad_in(float t);
  28. CGLM_EXPORT
  29. float
  30. glmc_ease_quad_out(float t);
  31. CGLM_EXPORT
  32. float
  33. glmc_ease_quad_inout(float t);
  34. CGLM_EXPORT
  35. float
  36. glmc_ease_cubic_in(float t);
  37. CGLM_EXPORT
  38. float
  39. glmc_ease_cubic_out(float t);
  40. CGLM_EXPORT
  41. float
  42. glmc_ease_cubic_inout(float t);
  43. CGLM_EXPORT
  44. float
  45. glmc_ease_quart_in(float t);
  46. CGLM_EXPORT
  47. float
  48. glmc_ease_quart_out(float t);
  49. CGLM_EXPORT
  50. float
  51. glmc_ease_quart_inout(float t);
  52. CGLM_EXPORT
  53. float
  54. glmc_ease_quint_in(float t);
  55. CGLM_EXPORT
  56. float
  57. glmc_ease_quint_out(float t);
  58. CGLM_EXPORT
  59. float
  60. glmc_ease_quint_inout(float t);
  61. CGLM_EXPORT
  62. float
  63. glmc_ease_exp_in(float t);
  64. CGLM_EXPORT
  65. float
  66. glmc_ease_exp_out(float t);
  67. CGLM_EXPORT
  68. float
  69. glmc_ease_exp_inout(float t);
  70. CGLM_EXPORT
  71. float
  72. glmc_ease_circ_in(float t);
  73. CGLM_EXPORT
  74. float
  75. glmc_ease_circ_out(float t);
  76. CGLM_EXPORT
  77. float
  78. glmc_ease_circ_inout(float t);
  79. CGLM_EXPORT
  80. float
  81. glmc_ease_back_in(float t);
  82. CGLM_EXPORT
  83. float
  84. glmc_ease_back_out(float t);
  85. CGLM_EXPORT
  86. float
  87. glmc_ease_back_inout(float t);
  88. CGLM_EXPORT
  89. float
  90. glmc_ease_elast_in(float t);
  91. CGLM_EXPORT
  92. float
  93. glmc_ease_elast_out(float t);
  94. CGLM_EXPORT
  95. float
  96. glmc_ease_elast_inout(float t);
  97. CGLM_EXPORT
  98. float
  99. glmc_ease_bounce_out(float t);
  100. CGLM_EXPORT
  101. float
  102. glmc_ease_bounce_in(float t);
  103. CGLM_EXPORT
  104. float
  105. glmc_ease_bounce_inout(float t);
  106. #ifdef __cplusplus
  107. }
  108. #endif
  109. #endif /* cglmc_ease_h */