def segmentSegmentIntersectionTest(a0 = "const %(Vector)s&",
                                   a1 = "const %(Vector)s&",
                                   b0 = "const %(Vector)s&",
                                   b1 = "const %(Vector)s&",
                                   tol = ("const double", "1.0e-10")):
    """Check if two line segments intersect (does not compute intersection point).
The line segments are characterized by their endpoints: a_seg = (a0, a1)
                                                        b_seg = (b0, b1)
The advantage of this method is that it should be faster if you don't need
the actual intersection.
Based on stuff from "Computational Geometry in C", Joseph O'Rourke"""
    return "bool"