Minsky
minsky::anonymous_namespace{item.cc} Namespace Reference

Functions

bool near (float x0, float y0, float x1, float y1, float d)
 

Function Documentation

◆ near()

bool minsky::anonymous_namespace{item.cc}::near ( float  x0,
float  y0,
float  x1,
float  y1,
float  d 
)
inline

Definition at line 147 of file item.cc.

Referenced by minsky::Item::onResizeHandle(), and minsky::BottomRightResizerItem::onResizeHandle().

148  {
149  return abs(x0-x1)<d && abs(y0-y1)<d;
150  }
Here is the caller graph for this function: