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
00011
00012
00013
00014
00015
00016
00017
00018
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 ¢er, const gmVector3 &length,
00024 const gmVector3 &v0, const gmVector3 &v1, const gmVector3 &v2);
00025 bool aabb_intersects_aabb(const gmVector3 ¢er1, const gmVector3 &length1,
00026 const gmVector3 ¢er2, const gmVector3 &length2);
00027 double aabb_distance_to_point(const gmVector3 ¢er, const gmVector3 &length,
00028 const gmVector3 &p, gmVector3 *where);
00029
00030 #endif