Esempio n. 1
0
 //----------------------------------------------------------------------
 public bool Contains( AABB _aabb )
 {
     return
         ( Min.X <= _aabb.Min.X && Max.X >= _aabb.Max.X )
         &&
         ( Min.Y <= _aabb.Min.Y && Max.Y >= _aabb.Max.Y );
 }
Esempio n. 2
0
 //----------------------------------------------------------------------
 public bool Intersects( AABB _aabb )
 {
     return
         ( ( Min.X <= _aabb.Max.X ) || ( Max.X >= _aabb.Min.X ) )
         &&
         ( ( Min.Y <= _aabb.Max.Y ) || ( Max.Y >= _aabb.Min.Y ) );
 }