TestProjection() { SetScreenOrigin(0, 0); SetScale(fixed(640) / (fixed(100) * 2)); SetGeoLocation(GeoPoint(Angle::Degrees(fixed(7.7061111111111114)), Angle::Degrees(fixed(51.051944444444445)))); SetScreenSize(640, 480); UpdateScreenBounds(); }
void ChartProjection::set_projection(const PixelRect &rc, const GeoPoint ¢er, const fixed radius) { SetMapRect(rc); SetScaleFromRadius(radius); SetGeoLocation(center); SetScreenOrigin((rc.left + rc.right) / 2, (rc.bottom + rc.top) / 2); UpdateScreenBounds(); }
TestProjection() { SetScreenOrigin(0, 0); SetScale(fixed(640) / (fixed(100) * 2)); SetGeoLocation(GeoPoint(Angle::Degrees(7.7061111111111114), Angle::Degrees(51.051944444444445))); }