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

Function TEST

pj_scene2D/core/tests/overlay_geometry_test.cpp:65–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63// --- Width scales with zoom (above the floor) --------------------------------
64
65TEST(OverlayGeometryStroke, WidthEqualsThicknessAtUnityScale) {
66 EXPECT_NEAR(strokeOnScreenWidth(3.0, 1.0), 3.0, 1e-4);
67}
68
69TEST(OverlayGeometryStroke, WidthGrowsWhenZoomedIn) {
70 // A 3px stroke at 2× is 6px on screen; at 4× it is 12px — it scales with zoom.

Callers

nothing calls this directly

Calls 8

strokeOnScreenWidthFunction · 0.85
appendLineStrokesFunction · 0.85
appendPointQuadsFunction · 0.85
onScreenWidthFunction · 0.85
appendLoopFillFunction · 0.85
extentFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected