From 2d7c1bbdd2a623453bdda145a564d43c87c2a195 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Mon, 29 Jan 2007 00:20:25 +0000 Subject: [PATCH] -Used scalar type passed as template argument istead of double to prevent warnings.. in Rotate function --- vcg/math/matrix33.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vcg/math/matrix33.h b/vcg/math/matrix33.h index d28d22f5..aba92d06 100644 --- a/vcg/math/matrix33.h +++ b/vcg/math/matrix33.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.15 2006/09/25 23:05:29 ganovelli +added constructor from matrix44 excluding a row and colum + Revision 1.14 2006/06/22 08:00:05 ganovelli bug in operator + with MatrixxDig @@ -353,10 +356,10 @@ public: void Rotate(S angle, const Point3 & axis ) { - angle = angle*3.14159265358979323846/180; - double c = cos(angle); - double s = sin(angle); - double q = 1-c; + angle = angle*(S)3.14159265358979323846/180; + S c = cos(angle); + S s = sin(angle); + S q = 1-c; Point3 t = axis; t.Normalize(); a[0] = t[0]*t[0]*q + c;