MCPcopy Create free account
hub / github.com/ThatOpen/engine_web-ifc / GetBounds

Method GetBounds

src/cpp/test/io_helpers.h:95–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 std::vector<SVGLineSet> sets;
94
95 Bounds GetBounds(glm::dvec2 size, glm::dvec2 offset)
96 {
97 Bounds b;
98 b.min = glm::dvec2(
99 DBL_MAX,
100 DBL_MAX);
101
102 b.max = glm::dvec2(
103 -DBL_MAX,
104 -DBL_MAX);
105
106 for (auto &set : sets)
107 {
108 b.Merge(set.GetBounds(size, offset));
109 }
110
111 return b;
112 }
113 };
114
115 void writeFile(std::string filename, std::string data);

Callers

nothing calls this directly

Calls 2

MergeMethod · 0.45
GetBoundsMethod · 0.45

Tested by

no test coverage detected