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

Function rescale

src/cpp/test/io_helpers.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 inline glm::dvec2 rescale(Point p, Bounds b, glm::dvec2 size, glm::dvec2 offset)
29 {
30 return glm::dvec2(
31 ((p.x - b.min.x) / (b.max.x - b.min.x)) * size.x + offset.x,
32 ((p.y - b.min.y) / (b.max.y - b.min.y)) * size.y + offset.y);
33 }
34
35 inline glm::dvec2 rescale(glm::dvec2 p, Bounds b, glm::dvec2 size, glm::dvec2 offset)
36 {

Callers 2

SVGLinesToStringFunction · 0.70
makeSVGLinesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected