8#ifndef IGL_SEGMENT_SEGMENT_INTERSECT_H
9#define IGL_SEGMENT_SEGMENT_INTERSECT_H
28 template<
typename DerivedSource,
typename DerivedDir>
30 const Eigen::MatrixBase <DerivedSource> &p,
31 const Eigen::MatrixBase <DerivedDir> &r,
32 const Eigen::MatrixBase <DerivedSource> &q,
33 const Eigen::MatrixBase <DerivedDir> &s,
39#ifndef IGL_STATIC_LIBRARY
40# include "segment_segment_intersect.cpp"
#define IGL_INLINE
Definition igl_inline.h:15
bool segment_segment_intersect(const Eigen::MatrixBase< DerivedSource > &p, const Eigen::MatrixBase< DerivedDir > &r, const Eigen::MatrixBase< DerivedSource > &q, const Eigen::MatrixBase< DerivedDir > &s, double &t, double &u, double eps=1e-6)
Determine whether two line segments A,B intersect.