3838#include < cmath>
3939using namespace ebsdlib ;
4040
41- // -----------------------------------------------------------------------------
42- //
4341// -----------------------------------------------------------------------------
4442OrientationMath::OrientationMath () = default;
4543
46- // -----------------------------------------------------------------------------
47- //
4844// -----------------------------------------------------------------------------
4945OrientationMath::~OrientationMath () = default ;
5046
51- // -----------------------------------------------------------------------------
52- //
5347// -----------------------------------------------------------------------------
5448void OrientationMath::MetricTensorFromLatticeParameters (float a, float b, float c, float alpha, float beta, float gamma, float mt[3 ][3 ])
5549{
@@ -64,8 +58,6 @@ void OrientationMath::MetricTensorFromLatticeParameters(float a, float b, float
6458 mt[2 ][2 ] = c * c;
6559}
6660
67- // -----------------------------------------------------------------------------
68- //
6961// -----------------------------------------------------------------------------
7062void OrientationMath::RootTensorFromLatticeParameters (float a, float b, float c, float alpha, float beta, float gamma, float rt[3 ][3 ])
7163{
@@ -80,8 +72,6 @@ void OrientationMath::RootTensorFromLatticeParameters(float a, float b, float c,
8072 rt[2 ][2 ] = c;
8173}
8274
83- // -----------------------------------------------------------------------------
84- //
8575// -----------------------------------------------------------------------------
8676void OrientationMath::MillerBravaisToMillerDirection (const int32_t millerBravais[4 ], int32_t miller[3 ])
8777{
@@ -90,8 +80,6 @@ void OrientationMath::MillerBravaisToMillerDirection(const int32_t millerBravais
9080 miller[2 ] = millerBravais[3 ];
9181}
9282// -----------------------------------------------------------------------------
93- //
94- // -----------------------------------------------------------------------------
9583void OrientationMath::MillerToMillerBravaisDirection (const int32_t miller[3 ], int32_t millerBravais[4 ])
9684{
9785 millerBravais[0 ] = static_cast <int32_t >(0 .33333f * (2 * miller[0 ] - miller[1 ]));
@@ -100,17 +88,13 @@ void OrientationMath::MillerToMillerBravaisDirection(const int32_t miller[3], in
10088 millerBravais[3 ] = miller[2 ];
10189}
10290// -----------------------------------------------------------------------------
103- //
104- // -----------------------------------------------------------------------------
10591void OrientationMath::MillerBravaisToMillerPlane (const int32_t millerBravais[4 ], int32_t miller[3 ])
10692{
10793 miller[0 ] = millerBravais[0 ];
10894 miller[1 ] = millerBravais[1 ];
10995 miller[2 ] = millerBravais[3 ];
11096}
11197// -----------------------------------------------------------------------------
112- //
113- // -----------------------------------------------------------------------------
11498void OrientationMath::MillerToMillerBravaisPlane (const int32_t miller[3 ], int32_t millerBravais[4 ])
11599{
116100 millerBravais[0 ] = miller[0 ];
0 commit comments