Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
PlaneSegmentIntersection.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_PlaneSegmentIntersection_H_
9#define model_PlaneSegmentIntersection_H_
10
11#include <tuple>
12#include <Eigen/Dense>
13#include <Plane.h>
14#include <FiniteLineSegment.h>
15
16namespace model
17{
18
19 template <int dim>
21 {
22
24
25 typedef Eigen::Matrix<double,dim,1> VectorDimD;
26
27 typedef std::tuple<IntersectionType,VectorDimD,VectorDimD> SolutionType;
29
30 /**********************************************************************/
32 const VectorDimD& Normal,
33 const VectorDimD& v0,
34 const VectorDimD& v1);
35
36
37 public:
38
42
43 /**********************************************************************/
45 const VectorDimD& N,
46 const VectorDimD& v0,
47 const VectorDimD& v1);
48
49 /**********************************************************************/
51 const FiniteLineSegment<dim>& seg);
52
53 };
54
55}
56#endif
Eigen::Matrix< double, dim, 1 > VectorDimD
static SolutionType findIntersection(const VectorDimD &P0, const VectorDimD &Normal, const VectorDimD &v0, const VectorDimD &v1)
PlaneSegmentIntersection(const VectorDimD &P0, const VectorDimD &N, const VectorDimD &v0, const VectorDimD &v1)
std::tuple< IntersectionType, VectorDimD, VectorDimD > SolutionType