mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Fixed some issue with scalar multiplications (explicit) and continued with UNIT tests
This commit is contained in:
@@ -51,8 +51,10 @@ CCoordinateEcef CCoordinateTransformation::toEcef(const CCoordinateNed &ned)
|
||||
|
||||
dcm = dcm1 * dcm2 * dcm3;
|
||||
|
||||
bool inverse;
|
||||
invDcm.setZero();
|
||||
invDcm = dcm.inverse();
|
||||
invDcm = dcm.inverse(inverse);
|
||||
Q_ASSERT_X(inverse, "toEcef", "Inverse matrix could not be calculated");
|
||||
|
||||
CVector3D tempResult = invDcm * ned.toMathVector(); // to generic vector
|
||||
CCoordinateEcef result(tempResult);
|
||||
|
||||
Reference in New Issue
Block a user