boolean function ( FreedomPolygon arg0 , FreedomPolygon arg1 ) { for ( FreedomPoint loc0 : arg0 . getPoints ( ) ) { if ( contains ( arg1 , loc0 ) ) { return true ; } } for ( FreedomPoint loc0 : arg1 . getPoints ( ) ) { if ( contains ( arg0 , loc0 ) ) { return true ; } } return false ; }
checks if some of the edge of source polygon is inside target polygon area . warning : some use case are not covered . for example to know if to polygons instersects we check only if one or more edges of the two polygon are inside the other polygon shape . this works for our uses cases check if a door is inside a room but if we have two polygons like this a `` plus sign '' shape it will return false even if they `` intersects '' each other because no edges are contained concode_field_sep AffineTransform transform concode_elem_sep Logger LOG concode_field_sep Color convertColorToAWT concode_elem_sep FreedomPolygon rotate concode_elem_sep boolean contains concode_elem_sep FreedomPoint getRectangleCenter concode_elem_sep Shape convertToAWT concode_elem_sep Shape convertToAWT concode_elem_sep Point convertToAWT concode_elem_sep Ellipse2D convertToAWT concode_elem_sep Polygon convertToAWT concode_elem_sep FreedomPolygon getBoundingBox concode_elem_sep FreedomPolygon translate concode_elem_sep FreedomPolygon translate concode_elem_sep FreedomPoint rotatePoint