8#ifndef IGL_RAY_BOX_INTERSECT_H
9#define IGL_RAY_BOX_INTERSECT_H
12#include <Eigen/Geometry>
27 typename Derivedsource,
31 const Eigen::MatrixBase<Derivedsource> & source,
32 const Eigen::MatrixBase<Deriveddir> & dir,
33 const Eigen::AlignedBox<Scalar,3> & box,
41 typename Derivedsource,
45 const Eigen::MatrixBase<Derivedsource> & source,
46 const Eigen::MatrixBase<Deriveddir> & inv_dir,
47 const Eigen::MatrixBase<Deriveddir> & inv_dir_pad,
48 const Eigen::AlignedBox<Scalar,3> & box,
54#ifndef IGL_STATIC_LIBRARY
55# include "ray_box_intersect.cpp"
#define IGL_INLINE
Definition igl_inline.h:15
bool ray_box_intersect(const Eigen::MatrixBase< Derivedsource > &source, const Eigen::MatrixBase< Deriveddir > &dir, const Eigen::AlignedBox< Scalar, 3 > &box, const Scalar &t0, const Scalar &t1, Scalar &tmin, Scalar &tmax)
Determine whether a ray origin+t*dir and box intersect within the ray's parameterized range (t0,...