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"
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
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
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
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
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
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