aboutsummaryrefslogtreecommitdiff
path: root/vendor/libftm/src/ftm_radian.c
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libftm/src/ftm_radian.c')
-rw-r--r--vendor/libftm/src/ftm_radian.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/libftm/src/ftm_radian.c b/vendor/libftm/src/ftm_radian.c
new file mode 100644
index 0000000..6e1e380
--- /dev/null
+++ b/vendor/libftm/src/ftm_radian.c
@@ -0,0 +1,18 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ftm_radian.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/05/12 11:08:29 by charles #+# #+# */
+/* Updated: 2020/05/12 11:19:17 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libftm.h"
+
+float ftm_radian(float degree)
+{
+ return ((degree / 180.0) * M_PI);
+}