Transform::rotate() using radians instead of degrees in sin(), cos() calls

git-svn-id: svn://anubis/fart/trunk@42 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop 2009-01-23 16:47:08 +00:00
parent 20eafaf9f4
commit bd12e9798f

View File

@ -29,8 +29,8 @@ void Transform::rotate(double angle, double xv, double yv, double zv)
Vector l(xv, yv, zv); Vector l(xv, yv, zv);
l.normalize(); l.normalize();
double c = cos(angle); double c = cos(M_PI * angle / 180.0);
double s = sin(angle); double s = sin(M_PI * angle / 180.0);
double lx2 = l[0] * l[0]; double lx2 = l[0] * l[0];
double ly2 = l[1] * l[1]; double ly2 = l[1] * l[1];