Wm4Intersector.cpp

Go to the documentation of this file.
00001 // Wild Magic Source Code
00002 // David Eberly
00003 // http://www.geometrictools.com
00004 // Copyright (c) 1998-2007
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 // The license applies to versions 0 through 4 of Wild Magic.
00014 //
00015 // Version: 4.0.0 (2006/06/28)
00016 
00017 #include "Wm4FoundationPCH.h"
00018 #include "Wm4Intersector.h"
00019 
00020 namespace Wm4
00021 {
00022 //----------------------------------------------------------------------------
00023 template <class Real, class TVector>
00024 Intersector<Real,TVector>::Intersector ()
00025 {
00026     m_fContactTime = (Real)0.0;
00027     m_iIntersectionType = IT_EMPTY;
00028 }
00029 //----------------------------------------------------------------------------
00030 template <class Real, class TVector>
00031 Intersector<Real,TVector>::~Intersector ()
00032 {
00033 }
00034 //----------------------------------------------------------------------------
00035 template <class Real, class TVector>
00036 Real Intersector<Real,TVector>::GetContactTime () const
00037 {
00038     return m_fContactTime;
00039 }
00040 //----------------------------------------------------------------------------
00041 template <class Real, class TVector>
00042 int Intersector<Real,TVector>::GetIntersectionType () const
00043 {
00044     return m_iIntersectionType;
00045 }
00046 //----------------------------------------------------------------------------
00047 template <class Real, class TVector>
00048 bool Intersector<Real,TVector>::Test ()
00049 {
00050     // stub for derived class
00051     assert(false);
00052     return false;
00053 }
00054 //----------------------------------------------------------------------------
00055 template <class Real, class TVector>
00056 bool Intersector<Real,TVector>::Find ()
00057 {
00058     // stub for derived class
00059     assert(false);
00060     return false;
00061 }
00062 //----------------------------------------------------------------------------
00063 template <class Real, class TVector>
00064 bool Intersector<Real,TVector>::Test (Real, const TVector&, const TVector&)
00065 {
00066     // stub for derived class
00067     assert(false);
00068     return false;
00069 }
00070 //----------------------------------------------------------------------------
00071 template <class Real, class TVector>
00072 bool Intersector<Real,TVector>::Find (Real, const TVector&, const TVector&)
00073 {
00074     // stub for derived class
00075     assert(false);
00076     return false;
00077 }
00078 //----------------------------------------------------------------------------
00079 
00080 //----------------------------------------------------------------------------
00081 // explicit instantiation
00082 //----------------------------------------------------------------------------
00083 template WM4_FOUNDATION_ITEM
00084 class Intersector<float,Vector2f>;
00085 
00086 template WM4_FOUNDATION_ITEM
00087 class Intersector<float,Vector3f>;
00088 
00089 template WM4_FOUNDATION_ITEM
00090 class Intersector<double,Vector2d>;
00091 
00092 template WM4_FOUNDATION_ITEM
00093 class Intersector<double,Vector3d>;
00094 //----------------------------------------------------------------------------
00095 }

Generated on Wed Nov 23 19:01:04 2011 for FreeCAD by  doxygen 1.6.1