Classes | |
| struct | MR::RayOrigin< T > |
Functions | |
| template<typename T = float> | |
| bool | MR::rayBoxIntersect (const Box3< T > &box, const RayOrigin< T > &rayOrigin, T &t0, T &t1, const IntersectionPrecomputes< T > &prec) |
| template<typename T = float> | |
| bool | MR::rayBoxIntersect (const Box3< T > &box, const Line3< T > &line, T t0, T t1) |
| bool MR::rayBoxIntersect | ( | const Box3< T > & | box, |
| const Line3< T > & | line, | ||
| T | t0, | ||
| T | t1 ) |
#include <MRRayBoxIntersection.h>
| bool MR::rayBoxIntersect | ( | const Box3< T > & | box, |
| const RayOrigin< T > & | rayOrigin, | ||
| T & | t0, | ||
| T & | t1, | ||
| const IntersectionPrecomputes< T > & | prec ) |
#include <MRRayBoxIntersection.h>
CPU(X86_64) - AMD64 / Intel64 / x86_64 64-bit finds intersection between the Ray and the Box. Precomputed values could be useful for several calls with the same direction, see "An Efficient and Robust Ray-Box Intersection Algorithm" at https:/// people.csail.mit.edu/amy/papers/box-jgt.pdf
compare and update x-dimension with t0-t1
compare and update y-dimension with t0-t1
compare and update z-dimension with t0-t1