From 8e243066253cd20c06a27c2b55589015e2f6d0cc Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 4 Feb 2024 21:09:38 +0100 Subject: [PATCH] degreesToRadians --- src/c/funktionen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 456aac5..d741c2b 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -122,3 +122,7 @@ float arcTangent(float x) { return atan(x); } +// Function to convert degrees to radians +float degreesToRadians(float x) { + return x * (M_PI / 180); +}