1 //------------------------------------------------------------------------------
2 // File : minmaxbox.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
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.
18 //=========================================================================
19 // minmaxbox.hpp : min-max box routines
20 //=========================================================================
22 void GetMinMaxBoxVerts(const float Min[3], const float Max[3], float V[8][3]);
24 int RayMinMaxBoxIsect(const float Start[3], const float Dir[3],
25 const float Min[3], const float Max[3],
26 float *InT, float *OutT);
27 int EdgeMinMaxBoxIsect(const float A[3], const float B[3],
28 const float Min[3], const float Max[3],
29 float *InT, float *OutT);