Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
LineSimplexIntersection.h
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MoDELib is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef model_LineSimplexIntersection_H_
9#define model_LineSimplexIntersection_H_
10
11#include <tuple>
12#include <map>
13#include <Eigen/Dense>
14
15namespace model
16{
17
18 template <int dim>
20 {
21
22 /*\todo MAKE THIS CLASS GENERAL FOR SIMPLICES.
23 */
24
25 typedef Eigen::Matrix<double,dim,1> VectorDim;
26 typedef Eigen::Matrix<double,dim,dim> MatrixDim;
27
28 public:
29
30 /**********************************************************************/
31 static std::map<float,VectorDim> lineTriangleIntersection(const VectorDim& X,const VectorDim& s,
32 const VectorDim& P1,const VectorDim& P2,const VectorDim& P3);
33
34 };
35
36}
37#endif
static std::map< float, VectorDim > lineTriangleIntersection(const VectorDim &X, const VectorDim &s, const VectorDim &P1, const VectorDim &P2, const VectorDim &P3)