aboutsummaryrefslogtreecommitdiff
path: root/src/misc/lv_math.c
diff options
context:
space:
mode:
authorLiam <30486941+liamHowatt@users.noreply.github.com>2024-08-02 01:46:42 -0400
committerGitHub <noreply@github.com>2024-08-02 07:46:42 +0200
commit1d14386b99cdff731cc3367d1d8b5e96ffb8fcea (patch)
tree6c0ac804a785f54efebd372fd7070a5e2f840036 /src/misc/lv_math.c
parenta8c8275b560fa74b8bdd72d1d180c98d22a33fc8 (diff)
downloadlvgl-1d14386b99cdff731cc3367d1d8b5e96ffb8fcea.tar.gz
lvgl-1d14386b99cdff731cc3367d1d8b5e96ffb8fcea.zip
refactor(API): don't expose private symbols in lvgl.h. phase-out "_lv*" names (#6068)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Diffstat (limited to 'src/misc/lv_math.c')
-rw-r--r--src/misc/lv_math.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/misc/lv_math.c b/src/misc/lv_math.c
index a303a4c79..bd728fbcf 100644
--- a/src/misc/lv_math.c
+++ b/src/misc/lv_math.c
@@ -439,6 +439,18 @@ uint32_t lv_rand(uint32_t min, uint32_t max)
return (rand_seed % (max - min + 1)) + min;
}
+int32_t LV_ATTRIBUTE_FAST_MEM lv_trigo_cos(int16_t angle)
+{
+ return lv_trigo_sin(angle + 90);
+}
+
+int32_t lv_bezier3(int32_t t, int32_t u0, uint32_t u1, int32_t u2, int32_t u3)
+{
+ LV_UNUSED(u0);
+ LV_UNUSED(u3);
+ return lv_cubic_bezier(t, 341, u1, 683, u2);
+}
+
/**********************
* STATIC FUNCTIONS
**********************/