MCPcopy Create free account
hub / github.com/cinder/Cinder / intersects

Method intersects

src/cinder/Rect.cpp:263–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262template<typename T>
263bool RectT<T>::intersects( const RectT<T> &rect ) const
264{
265 if( ( x1 > rect.x2 ) || ( x2 < rect.x1 ) || ( y1 > rect.y2 ) || ( y2 < rect.y1 ) )
266 return false;
267 else
268 return true;
269}
270
271template<typename T>
272T RectT<T>::distance( const Vec2T &pt ) const

Callers 6

updateMethod · 0.45
performPickingMethod · 0.45
setupMethod · 0.45
path2dpart3.jsFile · 0.45
path2dpart2.jsFile · 0.45
path2dpart1.jsFile · 0.45

Calls

no outgoing calls

Tested by 1

setupMethod · 0.36