From: <vr-...@us...> - 2003-12-03 08:39:12
|
Update of /cvsroot/alpp/openalpp/src In directory sc8-pr-cvs1:/tmp/cvs-serv13773 Modified Files: groupsource.cpp Log Message: .NET2003 requires casting to float for sqrt Index: groupsource.cpp =================================================================== RCS file: /cvsroot/alpp/openalpp/src/groupsource.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** groupsource.cpp 16 Apr 2003 11:15:05 -0000 1.6 --- groupsource.cpp 3 Dec 2003 08:39:09 -0000 1.7 *************** *** 169,173 **** right[2]=orientation[0]*orientation[4]-orientation[3]*orientation[1]; // The length of the cross-product of two normalized vectors will be sqrt(2) ! float dsqrt2=(float)5.0/sqrt(2); right[0]*=dsqrt2; right[1]*=dsqrt2; --- 169,173 ---- right[2]=orientation[0]*orientation[4]-orientation[3]*orientation[1]; // The length of the cross-product of two normalized vectors will be sqrt(2) ! float dsqrt2=(float)(5.0/sqrt(2.0)); right[0]*=dsqrt2; right[1]*=dsqrt2; |