nl_tokens: Intersects the pair of specified source <code > Rectangle2D< / code > objects and puts the result into the specified destination <code > Rectangle2D< / code > object . One of the source rectangles can also be the destination to avoid creating a third Rectangle2D object but in this case the original points of this source rectangle will be overwritten by this method .
pl_tokens: public static void intersect ( ProjectionRect src1 , ProjectionRect src2 , ProjectionRect dest ) { double x1 = Math . <mask> ( src1 . getMinX ( ) , src2 . getMinX ( ) ) ; double y1 = Math . max ( src1 . getMinY ( ) , src2 . getMinY ( ) ) ; double x2 = Math . min ( src1 . getMaxX ( ) , src2 . getMaxX ( ) ) ; double y2 = Math . min ( src1 . getMaxY ( ) , src2 . getMaxY ( ) ) ; dest . setRect ( x1 , y1 , x2 - x1 , y2 - y1 ) ; }