#NEWLINE# def testMethods( self ) : #NEWLINE# #INDENT# bb1 = p . BB ( 0 , 0 , 10 , 10 ) #NEWLINE# bb2 = p . BB ( 10 , 10 , 20 , 20 ) #NEWLINE# bb3 = p . BB ( 4 , 4 , 5 , 5 ) #NEWLINE# v1 = Vec2d ( 1 , 1 ) #NEWLINE# v2 = Vec2d ( 100 , 5 ) #NEWLINE# self . assert_ ( bb1 . intersects ( bb2 ) ) #NEWLINE# self . assertFalse ( bb1 . contains ( bb2 ) ) #NEWLINE# self . assert_ ( bb1 . contains ( bb3 ) ) #NEWLINE# self . assert_ ( bb1 . contains_vect ( v1 ) ) #NEWLINE# self . assertFalse ( bb1 . contains_vect ( v2 ) ) #NEWLINE# self . assertEqual ( bb1 . merge ( v1 ) , p . BB ( 0 , 0 , 20 , 20 ) ) #NEWLINE# self . assertEqual ( bb1 . expand ( v1 ) , bb1 ) #NEWLINE# self . assertEqual ( bb1 . expand ( ( - v2 ) ) , p . BB ( ( - 100 ) , ( - 5 ) , 10 , 10 ) ) #NEWLINE# self . assertEqual ( bb1 . clamp_vect ( v2 ) , Vec2d ( 10 , 5 ) ) #NEWLINE# self . assertEqual ( bb1 . wrap_vect ( ( 11 , 11 ) ) , ( 1 , 1 ) )