Skip to content

Commit 736a519

Browse files
author
Eric Sartre
committed
fix bug : invalid rotate transform
1 parent ed4024b commit 736a519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geometry.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ bool vertex_rotate(const vertex_id *vs,
184184
const double x = nx * sin(rad);
185185
const double y = ny * sin(rad);
186186
const double z = nz * sin(rad);
187-
const double w = cos(rad / 2.0);
187+
const double w = cos(rad);
188188
const double m[3][3] = {
189189
{1-2*(y*y+z*z), 2*(x*y-z*w) , 2*(x*z+y*w) },
190190
{2*(x*y+z*w) , 1-2*(z*z+x*x), 2*(y*z-x*w) },

0 commit comments

Comments
 (0)