MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / onScreenWidth

Function onScreenWidth

pj_scene2D/core/tests/overlay_geometry_test.cpp:53–55  ·  view source on GitHub ↗

effective_scale = on-screen pixels per image pixel; the renderer's view transform multiplies geometry by this, so on-screen width = image extent × effective_scale. image_px_per_screen_px is its reciprocal.

Source from the content-addressed store, hash-verified

51// transform multiplies geometry by this, so on-screen width = image extent ×
52// effective_scale. image_px_per_screen_px is its reciprocal.
53double onScreenWidth(const std::vector<float>& geom, int axis, double effective_scale) {
54 return extent(geom, axis) * effective_scale;
55}
56
57double strokeOnScreenWidth(double thickness, double effective_scale) {
58 std::vector<float> geom;

Callers 2

strokeOnScreenWidthFunction · 0.85
TESTFunction · 0.85

Calls 1

extentFunction · 0.85

Tested by

no test coverage detected