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

Function svgMakeLine

src/cpp/test/io_helpers.cpp:99–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 void svgMakeLine(glm::dvec2 a, glm::dvec2 b, std::stringstream &svg, std::string col)
100 {
101 svg << "<line x1=\"" << a.x << "\" y1=\"" << a.y << "\" ";
102 svg << "x2=\"" << b.x << "\" y2=\"" << b.y << "\" ";
103 svg << "style = \"stroke:" + col + ";stroke-width:1\" />";
104 }
105
106 void SVGLinesToString(Bounds bounds, glm::dvec2 size, glm::dvec2 offset, SVGLineSet lineSet, std::stringstream &svg)
107 {

Callers 2

SVGLinesToStringFunction · 0.70
makeSVGLinesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected