MCPcopy Create free account
hub / github.com/c3d/tao3D / ObjectAtPoint

Method ObjectAtPoint

tao/selection.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49uint Identify::ObjectAtPoint(coord x, coord y)
50// ----------------------------------------------------------------------------
51// Find the object under the cursor at the given coordinates
52// ----------------------------------------------------------------------------
53{
54 Box rectangle(x, y, 2, 2);
55 return ObjectInRectangle(rectangle);
56}
57
58
59uint Identify::ObjectInRectangle(const Box &rectangle,

Callers 1

mousePressEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected