From a4856692e6fb5d52fd6ff703ffeaafb63afa743f Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 4 Feb 2024 21:21:27 +0100 Subject: [PATCH] radiansToDegrees --- src/c/funktionen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index d741c2b..b069db3 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -126,3 +126,9 @@ float arcTangent(float x) { float degreesToRadians(float x) { return x * (M_PI / 180); } + +// Function to convert radians to degrees +float radiansToDegrees(float x) { + return x * (180 / M_PI); +} +