|
#define | AXISTEST_X01(a, b, fa, fb) |
|
#define | AXISTEST_X2(a, b, fa, fb) |
|
#define | AXISTEST_Y02(a, b, fa, fb) |
|
#define | AXISTEST_Y1(a, b, fa, fb) |
|
#define | AXISTEST_Z0(a, b, fa, fb) |
|
#define | AXISTEST_Z12(a, b, fa, fb) |
|
|
template<typename T , int N> |
bool | math::geom::box_box_overlap (math::Vector< T, N > const &b1min, math::Vector< T, N > const &b1max, math::Vector< T, N > const &b2min, math::Vector< T, N > const &b2max) |
| Returns true if the given boxes overlap, false otherwise.
|
|
template<typename T > |
bool | math::geom::plane_box_overlap (math::Vector< T, 3 > const &normal, math::Vector< T, 3 > const &pos, math::Vector< T, 3 > const &boxhalfsize) |
| Returns true if the given plane (in Hesse normal form) and a box in the origin given by 'boxhalfsizes' overlap, false otherwise.
|
|
template<typename T , int N> |
bool | math::geom::point_box_overlap (math::Vector< T, N > const &point, math::Vector< T, N > const &aabb_min, math::Vector< T, N > const &aabb_max) |
| Returns true if the given point overlaps with the axis-aligned box.
|
|
template<typename T > |
bool | math::geom::ray_box_overlap (math::Vector< T, 3 > const &origin, math::Vector< T, 3 > const &dir, math::Vector< T, 3 > const &box_min, math::Vector< T, 3 > const &box_max) |
| Returns true if the given ray intersects with the given axis-aligned bounding box, false otherwise.
|
|
template<typename T > |
math::Vector< T, 2 > | math::geom::ray_ray_intersect (math::Vector< T, 3 > const &p1, math::Vector< T, 3 > const &d1, math::Vector< T, 3 > const &p2, math::Vector< T, 3 > const &d2) |
| Intersects the given rays with each other.
|
|
template<typename T > |
T | math::geom::ray_triangle_intersect (math::Vector< T, 3 > const &origin, math::Vector< T, 3 > const &dir, math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c, float *bary=0) |
| Intersects the given ray with the given triangle and returns the 't' parameter of the intersection point wrt the ray.
|
|
template<typename T > |
bool | math::geom::triangle_box_overlap (math::Vector< T, 3 > const &boxcenter, math::Vector< T, 3 > const &boxhalfsize, math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c) |
| Returns true if the given triangle and box overlap, false otherwise.
|
|