MCPcopy Create free account
hub / github.com/comaps/comaps / AnyRectD>

Method AnyRectD>

libs/platform/settings.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78template <>
79string ToString<m2::AnyRectD>(m2::AnyRectD const & rect)
80{
81 std::ostringstream out;
82 out.precision(12);
83 m2::PointD glbZero(rect.GlobalZero());
84 out << glbZero.x << " " << glbZero.y << " ";
85 out << rect.Angle().val() << " ";
86 m2::RectD const & r = rect.GetLocalRect();
87 out << r.minX() << " " << r.minY() << " " << r.maxX() << " " << r.maxY();
88 return out.str();
89}
90
91template <>
92bool FromString<m2::AnyRectD>(string const & str, m2::AnyRectD & rect)

Callers

nothing calls this directly

Calls 8

FromStringArrayFunction · 0.85
GlobalZeroMethod · 0.80
AngleMethod · 0.80
minXMethod · 0.80
minYMethod · 0.80
maxXMethod · 0.80
maxYMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected