5
5
namespace Truss
6
6
{
7
7
#ifdef TRUSS_DOUBLE_PRECISION
8
- using Numeric = double ;
8
+ using Numeric = double ;
9
9
#else
10
- using Numeric = float ;
10
+ using Numeric = float ;
11
11
#endif
12
12
13
13
using ID = int ;
14
14
15
- constexpr ID INVALID_ID = -1 ;
15
+ constexpr ID INVALID_ID = -1 ;
16
16
17
- constexpr double PI_d = 3.1415926535897932384626 ;
17
+ constexpr double PI_d = 3.1415926535897932384626 ;
18
18
19
19
constexpr float PI_f = static_cast <float >(PI_d);
20
20
21
21
constexpr int ALL_DOF = 6 ;
22
22
23
23
const static Eigen::Array<int , 6 , 1 > DOF_INDEX{0 , 1 , 2 , 3 , 4 , 5 };
24
24
25
- template <typename T>
26
- using MatrixX = Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>;
25
+ template <typename T>
26
+ using MatrixX = Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>;
27
27
28
- template <typename T>
29
- using VectorX = Eigen::Vector<T, Eigen::Dynamic>;
28
+ template <typename T>
29
+ using VectorX = Eigen::Vector<T, Eigen::Dynamic>;
30
30
31
31
template <typename T>
32
32
using Vector3 = Eigen::Vector<T, 3 >;
@@ -43,9 +43,9 @@ namespace Truss
43
43
44
44
template <typename T>
45
45
Matrix3x3<T> GetTransformationMatrix (
46
- const Vector3<T>& XAxis,
47
- const Vector3<T>& YAxis = Vector3<T>::Zero(),
48
- const Vector3<T>& ZAxis = Vector3<T>::Zero())
46
+ const Vector3<T>& XAxis,
47
+ const Vector3<T>& YAxis = Vector3<T>::Zero(),
48
+ const Vector3<T>& ZAxis = Vector3<T>::Zero())
49
49
{
50
50
Matrix3x3<T> result = Matrix3x3<T>::Zero ();
51
51
result.row (0 ) = XAxis.normalized ();
@@ -67,7 +67,7 @@ namespace Truss
67
67
return result;
68
68
}
69
69
70
- template <typename T, typename Derived>
70
+ template <typename T, typename Derived>
71
71
MatrixX<T> BlockDiagonal (const Eigen::MatrixBase<Derived>& mat, int count)
72
72
{
73
73
MatrixX<T> result = MatrixX<T>::Zero (mat.rows () * count, mat.cols () * count);
@@ -83,4 +83,4 @@ namespace Truss
83
83
*/
84
84
class Resources ;
85
85
86
- }
86
+ }// namespace Truss
0 commit comments