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

aabb.h File Reference

#include "libgm/gm.h"

Include dependency graph for aabb.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

bool aabb_intersects_plane (const gmVector3 &length, const gmVector3 &normal, double d)
bool aabb_intersects_triangle (const gmVector3 &center, const gmVector3 &length, const gmVector3 &v0, const gmVector3 &v1, const gmVector3 &v2)
bool aabb_intersects_aabb (const gmVector3 &center1, const gmVector3 &length1, const gmVector3 &center2, const gmVector3 &length2)
double aabb_distance_to_point (const gmVector3 &center, const gmVector3 &length, const gmVector3 &p, gmVector3 *where)


Function Documentation

double aabb_distance_to_point const gmVector3 &  center,
const gmVector3 &  length,
const gmVector3 &  p,
gmVector3 *  where
 

Definition at line 210 of file aabb.cpp.

bool aabb_intersects_aabb const gmVector3 &  center1,
const gmVector3 &  length1,
const gmVector3 &  center2,
const gmVector3 &  length2
 

Definition at line 181 of file aabb.cpp.

bool aabb_intersects_plane const gmVector3 &  length,
const gmVector3 &  normal,
double  d
 

Definition at line 25 of file aabb.cpp.

References dot(), X, and Z.

Referenced by aabb_intersects_triangle().

bool aabb_intersects_triangle const gmVector3 &  center,
const gmVector3 &  length,
const gmVector3 &  v0,
const gmVector3 &  v1,
const gmVector3 &  v2
 

Definition at line 98 of file aabb.cpp.

References aabb_intersects_plane(), AXISTEST_X01, AXISTEST_X2, AXISTEST_Y02, AXISTEST_Y1, AXISTEST_Z0, AXISTEST_Z12, dot(), FINDMINMAX, X, Y, and Z.


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