#include <limits>
#include <Intersection.hpp>
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 ¢er, 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 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.