|
ACTS
Experiment-independent tracking
|
Checks if a cuboid bonuding box is intersected by a ray. More...
#include <detray/navigation/intersection/bounding_box/cuboid_intersector.hpp>
Public Member Functions | |
| template<concepts::algebra algebra_t, typename mask_t> | |
| bool | operator() (const detail::ray< algebra_t > &ray, const mask_t &box, const dscalar< algebra_t >=0.f) const |
| Operator to find intersections between ray and a cuboid aabb. | |
Checks if a cuboid bonuding box is intersected by a ray.
This will not compute the intersection point and is meant for aabb intersection instead of navigation. For the implementation see: https://tavianator.com/2022/ray_box_boundary.html and https://github.com/acts-project/acts/blob/85a67758f79f3b01aed4025592ab6a5e5ffbd323/Core/include/Acts/Utilities/BoundingBox.ipp
| bool detray::cuboid_intersector::operator() | ( | const detail::ray< algebra_t > & | ray, |
| const mask_t & | box, | ||
| const dscalar< algebra_t > | = 0.f ) const |
Operator to find intersections between ray and a cuboid aabb.
| algebra_t | is the linear algebra implementation used |
| ray | is the input ray trajectory |
| box | is the input mask The optional tolerance argument is retained for intersector compatibility and is not used by this axis-aligned box test. |