Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

aabb.h

Go to the documentation of this file.
00001 #ifndef SPACEAABB_INCLUDED // -*- C++ -*-
00002 #define SPACEAABB_INCLUDED
00003 
00004 #ifdef _MSC_VER
00005 #pragma once
00006 #pragma warning(disable : 4786)
00007 #endif
00008 
00009 /************************************************************************
00010    AABB-related routines.  (that's axis-aligned bounding box)
00011                                
00012    - Adapted from code fragments by Tomas Miller and Dave Eberly
00013 
00014    $Id: aabb.h,v 1.2 2003/02/24 11:58:36 tfleury Exp $
00015  ************************************************************************/
00016 
00017 // #include <gfx/gfx.h>
00018 // #include <gfx/gmVector3.h>
00019 #include "libgm/gm.h"
00020 
00021 
00022 bool aabb_intersects_plane(const gmVector3 &length, const gmVector3 &normal, double d);
00023 bool aabb_intersects_triangle(const gmVector3 &center, const gmVector3 &length,
00024                               const gmVector3 &v0, const gmVector3 &v1, const gmVector3 &v2);
00025 bool aabb_intersects_aabb(const gmVector3 &center1, const gmVector3 &length1,
00026                           const gmVector3 &center2, const gmVector3 &length2);
00027 double aabb_distance_to_point(const gmVector3 &center, const gmVector3 &length,
00028                               const gmVector3 &p, gmVector3 *where);
00029 
00030 #endif

Generated on Mon Jun 28 14:58:12 2004 for Advanced Surface Library by doxygen 1.3.4