1
// Wild Magic Source Code
3
// http://www.geometrictools.com
4
// Copyright (c) 1998-2007
6
// This library is free software; you can redistribute it and/or modify it
7
// under the terms of the GNU Lesser General Public License as published by
8
// the Free Software Foundation; either version 2.1 of the License, or (at
9
// your option) any later version. The license is available for reading at
10
// either of the locations:
11
// http://www.gnu.org/copyleft/lgpl.html
12
// http://www.geometrictools.com/License/WildMagicLicense.pdf
13
// The license applies to versions 0 through 4 of Wild Magic.
15
// Version: 4.0.0 (2006/06/28)
17
#ifndef WM4INTRSEGMENT3BOX3_H
18
#define WM4INTRSEGMENT3BOX3_H
20
#include "Wm4FoundationLIB.h"
21
#include "Wm4Intersector.h"
22
#include "Wm4Segment3.h"
29
class WM4_FOUNDATION_ITEM IntrSegment3Box3
30
: public Intersector<Real,Vector3<Real> >
33
IntrSegment3Box3 (const Segment3<Real>& rkSegment,
34
const Box3<Real>& rkBox, bool bSolid);
37
const Segment3<Real>& GetSegment () const;
38
const Box3<Real>& GetBox () const;
40
// static intersection queries
44
// the intersection set
45
int GetQuantity () const;
46
const Vector3<Real>& GetPoint (int i) const;
49
using Intersector<Real,Vector3<Real> >::m_iIntersectionType;
51
// the objects to intersect
52
const Segment3<Real>& m_rkSegment;
53
const Box3<Real>& m_rkBox;
56
// information about the intersection set
58
Vector3<Real> m_akPoint[2];
61
typedef IntrSegment3Box3<float> IntrSegment3Box3f;
62
typedef IntrSegment3Box3<double> IntrSegment3Box3d;