This commit is contained in:
Thomas Krijnen
2026-07-03 12:14:15 +02:00
parent a54a8b80d3
commit 55e97e5379
13 changed files with 152 additions and 152 deletions
+3 -3
View File
@@ -158,9 +158,9 @@ target_link_libraries(test_federation PRIVATE
Qt${QT_VERSION}::Gui # Federation::HomeView uses QVector3D from QtGui
Qt${QT_VERSION}::Test # QSignalSpy
Eigen3::Eigen # Federation.h: composed matrices use Eigen
# helpers provides Unit::convert + Geolocation helpers
# (helmertMetersFromParameters, getWcs, getMapUnit) + Placement
# (getAxis2Placement, called from Geolocation::getWcs). Linking the
# helpers provides unit conversion and geolocation helpers
# (helmert_meters_from_parameters, get_wcs, get_map_unit) + Placement
# (get_axis2_placement, called from geolocation::get_wcs). Linking the
# static lib avoids re-compiling those .cpp files here and pulls
# the src/helpers include dir + IfcParse transitively.
helpers
+2 -2
View File
@@ -18,7 +18,7 @@
********************************************************************************/
#include "Federation.h"
#include "Geolocation.h"
#include "geolocation.h"
#include <catch2/catch_test_macros.hpp>
@@ -467,7 +467,7 @@ TEST_CASE("helmert metres transform consumes Scale through map unit scale",
const double project_length_to_meters = 0.001;
const double map_unit_to_meters = project_length_to_meters / params.scale;
Eigen::Matrix4d M = helmertMetersFromParameters(params, map_unit_to_meters);
Eigen::Matrix4d M = helmert_meters_from_parameters(params, map_unit_to_meters);
Eigen::Vector4d local_m(10.0, 20.0, 0.0, 1.0);
Eigen::Vector4d global_m = M * local_m;