|
From: julien r. <jul...@us...> - 2005-12-07 22:24:07
|
Update of /cvsroot/epfl/engine/tglib/math In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24199/engine/tglib/math Modified Files: frustum.h math.h quaternion.h triangle.h vector.h Log Message: license Index: frustum.h =================================================================== RCS file: /cvsroot/epfl/engine/tglib/math/frustum.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** frustum.h 24 Nov 2005 20:47:14 -0000 1.1.1.1 --- frustum.h 7 Dec 2005 22:23:50 -0000 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* + ----------------------------------------------------------------------------- + This source file is part of Terminal G33k + + Copyright (c) 2000-2005 The Terminal G33k Team + Also see acknowledgements in Readme.html + + This program is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any later + version. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License along with + this program; if not, write to the Free Software Foundation, Inc., 59 Temple + Place - Suite 330, Boston, MA 02111-1307, USA, or go to + http://www.gnu.org/copyleft/lesser.txt. + ----------------------------------------------------------------------------- + */ #ifndef TGFRUSTUM_H #define TGFRUSTUM_H Index: vector.h =================================================================== RCS file: /cvsroot/epfl/engine/tglib/math/vector.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** vector.h 24 Nov 2005 20:47:14 -0000 1.1.1.1 --- vector.h 7 Dec 2005 22:23:50 -0000 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* + ----------------------------------------------------------------------------- + This source file is part of Terminal G33k + + Copyright (c) 2000-2005 The Terminal G33k Team + Also see acknowledgements in Readme.html + + This program is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any later + version. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License along with + this program; if not, write to the Free Software Foundation, Inc., 59 Temple + Place - Suite 330, Boston, MA 02111-1307, USA, or go to + http://www.gnu.org/copyleft/lesser.txt. + ----------------------------------------------------------------------------- + */ #ifndef TGMATHVECTOR_H #define TGMATHVECTOR_H *************** *** 57,61 **** { float d, invDenom; ! invDenom = 1.0 / (normal*normal); d = (normal*p) * invDenom; dst = p-(normal*invDenom)*d; --- 79,83 ---- { float d, invDenom; ! invDenom = 1.0f / (normal*normal); d = (normal*p) * invDenom; dst = p-(normal*invDenom)*d; Index: triangle.h =================================================================== RCS file: /cvsroot/epfl/engine/tglib/math/triangle.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** triangle.h 24 Nov 2005 20:47:14 -0000 1.1.1.1 --- triangle.h 7 Dec 2005 22:23:50 -0000 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* + ----------------------------------------------------------------------------- + This source file is part of Terminal G33k + + Copyright (c) 2000-2005 The Terminal G33k Team + Also see acknowledgements in Readme.html + + This program is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any later + version. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License along with + this program; if not, write to the Free Software Foundation, Inc., 59 Temple + Place - Suite 330, Boston, MA 02111-1307, USA, or go to + http://www.gnu.org/copyleft/lesser.txt. + ----------------------------------------------------------------------------- + */ #ifndef TGTRIANGLE_H #define TGTRIANGLE_H Index: math.h =================================================================== RCS file: /cvsroot/epfl/engine/tglib/math/math.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** math.h 24 Nov 2005 20:47:14 -0000 1.1.1.1 --- math.h 7 Dec 2005 22:23:50 -0000 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* + ----------------------------------------------------------------------------- + This source file is part of Terminal G33k + + Copyright (c) 2000-2005 The Terminal G33k Team + Also see acknowledgements in Readme.html + + This program is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any later + version. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License along with + this program; if not, write to the Free Software Foundation, Inc., 59 Temple + Place - Suite 330, Boston, MA 02111-1307, USA, or go to + http://www.gnu.org/copyleft/lesser.txt. + ----------------------------------------------------------------------------- + */ #ifndef TGMATH_H #define TGMATH_H Index: quaternion.h =================================================================== RCS file: /cvsroot/epfl/engine/tglib/math/quaternion.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** quaternion.h 24 Nov 2005 20:47:14 -0000 1.1.1.1 --- quaternion.h 7 Dec 2005 22:23:50 -0000 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* + ----------------------------------------------------------------------------- + This source file is part of Terminal G33k + + Copyright (c) 2000-2005 The Terminal G33k Team + Also see acknowledgements in Readme.html + + This program is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any later + version. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License along with + this program; if not, write to the Free Software Foundation, Inc., 59 Temple + Place - Suite 330, Boston, MA 02111-1307, USA, or go to + http://www.gnu.org/copyleft/lesser.txt. + ----------------------------------------------------------------------------- + */ #ifndef TGQUATERNION_H #define TGQUATERNION_H *************** *** 185,189 **** { tgVector3 tmp = axis/axis.Length(); ! angle *= DEGTORAD; float sin_a = tgMath::Sin(angle/2); float cos_a = tgMath::Cos(angle/2); --- 207,211 ---- { tgVector3 tmp = axis/axis.Length(); ! angle *= (float)DEGTORAD; float sin_a = tgMath::Sin(angle/2); float cos_a = tgMath::Cos(angle/2); |