<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
If you're asking the more general question about various geometric
algorithms (like intersection, union, inclusion, etc) you might want
to look at a text on computational geometry.<br>
</body>
</html>