Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
FiniteLineSegment.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_FiniteLineSegment_H_
9#define model_FiniteLineSegment_H_
10
11#include <cfloat>
12#include <tuple>
13#include <map>
14#include <Eigen/Dense>
15
17
18namespace model
19{
20
21 template <int dim>
23 {
24
25 typedef Eigen::Matrix<double,dim,1> VectorDim;
26
29
30 /**********************************************************************/
32 const VectorDim& p1);
33
34 /**********************************************************************/
35 VectorDim snap(const VectorDim& x) const;
36
37 /**********************************************************************/
39
40
41
42
43 /**********************************************************************/
45 const double& degeneracyValue=0.0) const;
46
47 /**********************************************************************/
48 double distanceTo(const VectorDim& x) const;
49
50 /**********************************************************************/
51 bool contains(const VectorDim& x) const;
52
53 /**********************************************************************/
54 double length() const;
55
56 /**********************************************************************/
57 bool hasZeroLength() const;
58
59 /**********************************************************************/
60 VectorDim center() const;
61
62 };
63
64}
65#endif
x
Definition int_R.m:12
VectorDim snap(const VectorDim &x) const
SegmentSegmentDistance< dim > distanceTo(const FiniteLineSegment< dim > &other, const double &degeneracyValue=0.0) const
bool contains(const VectorDim &x) const
Eigen::Matrix< double, dim, 1 > VectorDim
VectorDim snapToInfiniteLine(const VectorDim &x) const
FiniteLineSegment(const VectorDim &p0, const VectorDim &p1)
vertex p1