void ChartProjection::Set(const PixelRect &rc, const TaskProjection &task_projection, fixed radius_factor) { const GeoPoint center = task_projection.get_center(); const fixed radius = max(fixed(10000), task_projection.ApproxRadius() * radius_factor); set_projection(rc, center, radius); }
void ChartProjection::Set(const PixelRect &rc, const TaskProjection &task_projection, double radius_factor) { const GeoPoint center = task_projection.GetCenter(); const auto radius = std::max(double(10000), task_projection.ApproxRadius() * radius_factor); Set(rc, center, radius); }