#NEWLINE# def get_center( self ) : #NEWLINE# #INDENT# '\n        Calculates center of the BSPSection\n        :returns: center point\n        ' #NEWLINE# assert ( self . corner1 is not None ) #NEWLINE# assert ( self . corner2 is not None ) #NEWLINE# center = ( int ( ( self . corner1 [ 0 ] + ( ( self . corner2 [ 0 ] - self . corner1 [ 0 ] ) / 2 ) ) ) , int ( ( center . corner1 [ 1 ] + ( ( self . corner2 [ 1 ] - self . corner1 [ 1 ] ) / 2 ) ) ) ) #NEWLINE# return center