Skip to content
Snippets Groups Projects
Commit 72c0d41f authored by Romano Hauser's avatar Romano Hauser
Browse files

change comments

parent f01a0048
Branches
Tags v1.0
No related merge requests found
......@@ -3,7 +3,7 @@
TrafoMatrix for EEROS
Author: Romano Hauser
Date: 18.07.2023
Date: 18.07.2024
Mail: romano.hauser@ost.ch
Labeled TrafoMatrix based on EEROS Matrix
......
......@@ -76,12 +76,11 @@ namespace tf {
gamma= std::acos((*this)(0,0)/std::cos(beta));
if ((*this)(1,0) < 0.0) gamma *= -1;
// alpah: asin( [2,1] /cos(beta)); check if
// alpha: asin( [2,1] /cos(beta));
alpha= std::asin((*this)(2,1)/std::cos(beta));
// check if [2,2] is negativ, then alpha is in the next quadrant -> alpha > PI (alpha > 0 ) or alpha < -PI (alpha< 0)
if( (*this)(2,2) < 0.0 && alpha > 0.0 ) alpha = M_PI- alpha;
if( (*this)(2,2) < 0.0 && alpha < 0.0 ) alpha = -(M_PI+ alpha) ;
// alpha= std::acos((*this)(2,0)/std::cos(beta));
}
}
......
......@@ -2,7 +2,7 @@
/* test_TrafoMatrix
Author: Romano Hauser
Mail: romano.hauser@ost.ch
Date: 16.07.2024
Date: 18.07.2024
testing of TrafoMatrix functions
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment