Below are 2 rectangles. Given the coordinates of the rectangle vertices - (x1, y1)...(x8, y8), how can the area of the overlapping region (white in the figure below
There is another way that you may find interesting, but maybe not applicable in this case, and that is:
the final solution is the area of the bounding box multiplied by the number of dots inside both rectangles and then divided by number of repetitions of step 2, or in a form of a formula:
intersection_area = bounding_box_area * num_of_dots_inside_both / num_of_repetitions
The result will, of course, be more precise when the number of repetitions is larger. By the way, this method is called Monte Carlo method.