libigl v2.5.0
Loading...
Searching...
No Matches
ray_box_intersect.h File Reference
#include "igl_inline.h"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include "ray_box_intersect.cpp"

Go to the source code of this file.

Namespaces

namespace  igl
 

Functions

template<typename Derivedsource , typename Deriveddir , typename Scalar >
bool igl::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,t1)
 
template<typename Derivedsource , typename Deriveddir , typename Scalar >
bool igl::ray_box_intersect (const Eigen::MatrixBase< Derivedsource > &source, const Eigen::MatrixBase< Deriveddir > &inv_dir, const Eigen::MatrixBase< Deriveddir > &inv_dir_pad, const Eigen::AlignedBox< Scalar, 3 > &box, const Scalar &t0, const Scalar &t1, Scalar &tmin, Scalar &tmax)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.