MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / constructOrthoviewSelectionTest

Function constructOrthoviewSelectionTest

test/algorithm/View.h:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66inline SelectionVolume constructOrthoviewSelectionTest(const render::View& orthoView)
67{
68 render::View scissored(orthoView);
69
70 auto epsilon = registry::getValue<float>(RKEY_SELECT_EPSILON);
71 Vector2 deviceEpsilon(epsilon / DeviceWidth, epsilon / DeviceHeight);
72 ConstructSelectionTest(scissored, selection::Rectangle::ConstructFromPoint(Vector2(0, 0), deviceEpsilon));
73
74 return SelectionVolume(scissored);
75}
76
77// Constructs the given view with a camera projection
78// - with the view origin being located at three times the bounding box size away (following the view direction)

Callers 5

selectLightPlaneAt320Function · 0.85
TEST_FFunction · 0.85
performDragOperationFunction · 0.85

Calls 2

ConstructSelectionTestFunction · 0.85
SelectionVolumeClass · 0.50

Tested by

no test coverage detected