From 7f43ab9230feae0bf5c3534fc0e5aa6effacdf9c Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Mon, 17 Mar 2014 22:49:37 -0400
Subject: [PATCH] converted rotation to degrees

---
 pd/src/g_template.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pd/src/g_template.c b/pd/src/g_template.c
index f64f33999..37f3f83f5 100644
--- a/pd/src/g_template.c
+++ b/pd/src/g_template.c
@@ -1656,7 +1656,9 @@ void draw_parsetransform(t_draw *x, t_template *template, t_word *data,
         /* this doesn't jibe with glist_xtopixels, ytopixels, etc. */
         else if (type == gensym("rotate"))
         {
-            t_float a = fielddesc_getfloat(fd++, template, data, 0);
+            /* we need to convert degrees to radians */
+            t_float a = (fielddesc_getfloat(fd++, template, data, 0)) *
+                3.14159 / 180;
             argc--;
             t_float cx = 0, cy = 0;
             if (argc && fd->fd_type == A_FLOAT)
-- 
GitLab