]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Quaternions.cpp
License: Update GPLv2+ header to match current FSF recommendation
[lugaru.git] / Source / Quaternions.cpp
index b73b047be1fce708ab30401576d3b6288cf90b35..16ee7d689c95f817d6ca88c1ec7a129db677153a 100644 (file)
@@ -3,20 +3,18 @@ Copyright (C) 2003, 2010 - Wolfire Games
 
 This file is part of Lugaru.
 
-Lugaru is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
+Lugaru is free software; you can redistribute it and/or modify
+it under the terms of the GNU 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,
+Lugaru 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 General Public License for more details.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
 
 You should have received a copy of the GNU 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.
+along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "Quaternions.h"
@@ -280,8 +278,7 @@ bool PointInTriangle(Vector *p, Vector normal, float p11, float p12, float p13,
 bool LineFacet(Vector p1, Vector p2, Vector pa, Vector pb, Vector pc, Vector *p)
 {
     static float d;
-    static float a1, a2, a3;
-    static float total, denom, mu;
+    static float denom, mu;
     static Vector n, pa1, pa2, pa3;
 
     //Calculate the parameters for the plane
@@ -393,8 +390,7 @@ bool PointInTriangle(XYZ *p, XYZ normal, XYZ *p1, XYZ *p2, XYZ *p3)
 bool LineFacet(XYZ p1, XYZ p2, XYZ pa, XYZ pb, XYZ pc, XYZ *p)
 {
     static float d;
-    static float a1, a2, a3;
-    static float total, denom, mu;
+    static float denom, mu;
     static XYZ n, pa1, pa2, pa3;
 
     //Calculate the parameters for the plane
@@ -425,8 +421,7 @@ bool LineFacet(XYZ p1, XYZ p2, XYZ pa, XYZ pb, XYZ pc, XYZ *p)
 float LineFacetd(XYZ p1, XYZ p2, XYZ pa, XYZ pb, XYZ pc, XYZ *p)
 {
     static float d;
-    static float a1, a2, a3;
-    static float total, denom, mu;
+    static float denom, mu;
     static XYZ n, pa1, pa2, pa3;
 
     //Calculate the parameters for the plane
@@ -457,8 +452,7 @@ float LineFacetd(XYZ p1, XYZ p2, XYZ pa, XYZ pb, XYZ pc, XYZ *p)
 float LineFacetd(XYZ p1, XYZ p2, XYZ pa, XYZ pb, XYZ pc, XYZ n, XYZ *p)
 {
     static float d;
-    static float a1, a2, a3;
-    static float total, denom, mu;
+    static float denom, mu;
     static XYZ pa1, pa2, pa3;
 
     //Calculate the parameters for the plane
@@ -484,8 +478,7 @@ float LineFacetd(XYZ p1, XYZ p2, XYZ pa, XYZ pb, XYZ pc, XYZ n, XYZ *p)
 float LineFacetd(XYZ *p1, XYZ *p2, XYZ *pa, XYZ *pb, XYZ *pc, XYZ *p)
 {
     static float d;
-    static float a1, a2, a3;
-    static float total, denom, mu;
+    static float denom, mu;
     static XYZ pa1, pa2, pa3, n;
 
     //Calculate the parameters for the plane
@@ -516,8 +509,7 @@ float LineFacetd(XYZ *p1, XYZ *p2, XYZ *pa, XYZ *pb, XYZ *pc, XYZ *p)
 float LineFacetd(XYZ *p1, XYZ *p2, XYZ *pa, XYZ *pb, XYZ *pc, XYZ *n, XYZ *p)
 {
     static float d;
-    static float a1, a2, a3;
-    static float total, denom, mu;
+    static float denom, mu;
     static XYZ pa1, pa2, pa3;
 
     //Calculate the parameters for the plane