MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / pointInRect

Method pointInRect

Engine/source/math/mRect.h:203–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203inline bool RectI::pointInRect(const Point2I &pt) const
204{
205 return (pt.x >= point.x && pt.x < point.x + extent.x && pt.y >= point.y && pt.y < point.y + extent.y);
206}
207
208inline bool RectI::contains(const RectI& R) const
209{

Callers 15

updateSelectionMethod · 0.80
onMouseEventMethod · 0.80
updateSelectionMethod · 0.80
onMouseEventMethod · 0.80
on3DMouseDownMethod · 0.80
on3DMouseMoveMethod · 0.80
_drawRoadControlNodesMethod · 0.80
_getNodeAtScreenPosMethod · 0.80
_drawControlNodesMethod · 0.80
onMouseDownMethod · 0.80

Calls

no outgoing calls

Tested by 1

collideDividerMethod · 0.64