]> git.mxchange.org Git - simgear.git/blob - simgear/scene/sky/clouds3d/tri.hpp
A first attempt at making the clouds3d endian aware. Almost there.
[simgear.git] / simgear / scene / sky / clouds3d / tri.hpp
1 //------------------------------------------------------------------------------
2 // File : tri.hpp
3 //------------------------------------------------------------------------------
4 // GLVU : Copyright 1997 - 2002 
5 //        The University of North Carolina at Chapel Hill
6 //------------------------------------------------------------------------------
7 // Permission to use, copy, modify, distribute and sell this software and its 
8 // documentation for any purpose is hereby granted without fee, provided that 
9 // the above copyright notice appear in all copies and that both that copyright 
10 // notice and this permission notice appear in supporting documentation. 
11 // Binaries may be compiled with this software without any royalties or 
12 // restrictions. 
13 //
14 // The University of North Carolina at Chapel Hill makes no representations 
15 // about the suitability of this software for any purpose. It is provided 
16 // "as is" without express or implied warranty.
17
18 //============================================================================
19 // tri.hpp : triangle defs and intersection routines.
20 //============================================================================
21
22 int PtInTri2D(float Px, float Py, 
23               float Ax, float Ay, float Bx, float By, float Cx, float Cy);
24
25 int PtInTri3D(const float P[3], float N[3], 
26               const float A[3], const float B[3], const float C[3]);
27
28 int EdgeTriIsect(const float U[3], const float V[3],
29                  const float A[3], const float B[3], const float C[3],
30                  float IsectPt[3]);