Wm4IntrTriangle3Cone3.h

Go to the documentation of this file.
00001 // Wild Magic Source Code
00002 // David Eberly
00003 // http://www.geometrictools.com
00004 // Copyright (c) 1998-2008
00005 //
00006 // This library is free software; you can redistribute it and/or modify it
00007 // under the terms of the GNU Lesser General Public License as published by
00008 // the Free Software Foundation; either version 2.1 of the License, or (at
00009 // your option) any later version.  The license is available for reading at
00010 // either of the locations:
00011 //     http://www.gnu.org/copyleft/lgpl.html
00012 //     http://www.geometrictools.com/License/WildMagicLicense.pdf
00013 //
00014 // Version: 4.0.1 (2007/05/06)
00015 
00016 #ifndef WM4INTRTRIANGLE3CONE3_H
00017 #define WM4INTRTRIANGLE3CONE3_H
00018 
00019 #include "Wm4FoundationLIB.h"
00020 #include "Wm4Intersector.h"
00021 #include "Wm4Triangle3.h"
00022 #include "Wm4Cone3.h"
00023 
00024 namespace Wm4
00025 {
00026 
00027 template <class Real>
00028 class WM4_FOUNDATION_ITEM IntrTriangle3Cone3
00029     : public Intersector<Real,Vector3<Real> >
00030 {
00031 public:
00032     IntrTriangle3Cone3 (const Triangle3<Real>& rkTriangle,
00033         const Cone3<Real>& rkCone);
00034 
00035     // object access
00036     const Triangle3<Real>& GetTriangle () const;
00037     const Cone3<Real>& GetCone () const;
00038 
00039     // static query
00040     virtual bool Test ();
00041 
00042 private:
00043     // the objects to intersect
00044     const Triangle3<Real>* m_pkTriangle;
00045     const Cone3<Real>* m_pkCone;
00046 };
00047 
00048 typedef IntrTriangle3Cone3<float> IntrTriangle3Cone3f;
00049 typedef IntrTriangle3Cone3<double> IntrTriangle3Cone3d;
00050 
00051 }
00052 
00053 #endif

Generated on Fri Feb 13 13:58:10 2009 for meshmorph by  doxygen 1.5.1