## CGAL::do_intersect

#include <CGAL/intersections_d.h>

bool | do_intersect ( Type1<R> obj1, Type2<R> obj2)
|  | checks whether obj1 and obj2 intersect. Two objects obj1 and obj2 intersect if there is a point p that is part of both obj1 and obj2. The intersection region of those two objects is defined as the set of all points p that are part of both obj1 and obj2. Precondition: the objects are of the same dimension.

The types Type1 and Type2 can be any of the following:

- Point_d<R>
- Line_d<R>
- Ray_d<R>
- Segment_d<R>
- Hyperplane_d<R>

### See Also

intersection