/home/fayn/OpenKraken-dev/OpenKN-geometry/src/Intersection.cpp File Reference

#include <limits>
#include <Intersection.hpp>

Include dependency graph for Intersection.cpp:

Go to the source code of this file.

Namespaces

namespace  kn

Defines

#define TRIANGLE_EPSILON   0.000001
#define OBB_EPSILON   1e-20

Functions

std::pair< kn::Vector2d, double > kn::intersectTriangle (const kn::Vector3d &pointA, const kn::Vector3d &pointB, const kn::Vector3d &pointC, const kn::Vector3d &rayDirection,const kn::Vector3d &rayOrigin)
 Intersect a triangle If the returned distance is negative, no intersection was found.
std::pair< kn::Vector3d, double > kn::intersectOBB (const kn::Vector3d &center, const kn::Vector3d a[3], const kn::Vector3d &h, const kn::Vector3d &rayDirection,const kn::Vector3d &rayOrigin)
 Intersect an Oriented Bounding Box If the returned distance is negative, no intersection was found.
std::pair< kn::Vector3d, double > kn::intersectSphere (const kn::Vector3d &spherePosition, double sphereRadius, const kn::Vector3d &rayDirection,const kn::Vector3d &rayOrigin)
 Intersect a sphere If the returned distance is negative, no intersection was found.


Define Documentation

#define OBB_EPSILON   1e-20

Definition at line 37 of file Intersection.cpp.

#define TRIANGLE_EPSILON   0.000001

Definition at line 36 of file Intersection.cpp.


Generated on Thu Nov 12 16:06:36 2009 for OpenKN-geometry by  doxygen 1.5.8