17 lines
539 B
C++
17 lines
539 B
C++
#pragma once
|
|
#include <utility>
|
|
|
|
// Minimal realistic mock for coordinate transforms used during migration.
|
|
// Forward conversion returns approximate meters using lat/lon*111000.
|
|
class MockCoordTrans {
|
|
public:
|
|
// approximate forward: (lat, lon) -> (x_m, y_m)
|
|
static std::pair<double,double> forward(double lat_deg, double lon_deg) {
|
|
return {lat_deg * 111000.0, lon_deg * 111000.0};
|
|
}
|
|
// approximate inverse
|
|
static std::pair<double,double> inverse(double x_m, double y_m) {
|
|
return {x_m / 111000.0, y_m / 111000.0};
|
|
}
|
|
};
|