Makefile.am SGMathTest.cxx SGQuat.hxx SGVec3.hxx Added Files: SGBox.hxx SGGeometry.hxx SGGeometryFwd.hxx SGGeometryTest.cxx SGIntersect.hxx SGLineSegment.hxx SGPlane.hxx SGRay.hxx SGSphere.hxx SGTriangle.hxx: Small updates to the vector code, new geometry and collision classes for use with a bv tree to speed up collission tests. Also included is a rought unit test for the collissions.
52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
// Copyright (C) 2006 Mathias Froehlich - Mathias.Froehlich@web.de
|
|
//
|
|
// This library is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU Library General Public
|
|
// License as published by the Free Software Foundation; either
|
|
// version 2 of the License, or (at your option) any later version.
|
|
//
|
|
// This library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
// Library General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program; if not, write to the Free Software
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
//
|
|
|
|
#ifndef SGGeometryFwd_HXX
|
|
#define SGGeometryFwd_HXX
|
|
|
|
template<typename T>
|
|
class SGBox;
|
|
typedef SGBox<float> SGBoxf;
|
|
typedef SGBox<double> SGBoxd;
|
|
|
|
template<typename T>
|
|
class SGSphere;
|
|
typedef SGSphere<float> SGSpheref;
|
|
typedef SGSphere<double> SGSphered;
|
|
|
|
template<typename T>
|
|
class SGRay;
|
|
typedef SGRay<float> SGRayf;
|
|
typedef SGRay<double> SGRayd;
|
|
|
|
template<typename T>
|
|
class SGLineSegment;
|
|
typedef SGLineSegment<float> SGLineSegmentf;
|
|
typedef SGLineSegment<double> SGLineSegmentd;
|
|
|
|
template<typename T>
|
|
class SGPlane;
|
|
typedef SGPlane<float> SGPlanef;
|
|
typedef SGPlane<double> SGPlaned;
|
|
|
|
template<typename T>
|
|
class SGTriangle;
|
|
typedef SGTriangle<float> SGTrianglef;
|
|
typedef SGTriangle<double> SGTriangled;
|
|
|
|
#endif
|