def METHOD_NAME():
    '''Test all features of the module using a detector composed of four
    overlapping square sensors.'''
    d1 = matrix.col((1, 0, 0))
    d2 = matrix.col((0, 1, 0))
    lim = (0,50)
    panel0 = sensor(matrix.col((-45, -45, 100)), d1, d2, lim, lim)
    panel1 = sensor(matrix.col((-5, -45, 99)), d1, d2, lim, lim)
    panel2 = sensor(matrix.col((-45, -5, 98)), d1, d2, lim, lim)
    panel3 = sensor(matrix.col((-5, -5, 97)), d1, d2, lim, lim)
    d = detector([panel0, panel1, panel2, panel3])
    rays = [matrix.col((0, 0, 1))]
    for ver in ('matrix', 'vector'):
        rp = predictor_factory(ver)
        rp = rp(rays, d.sensors())
        # only one ray to consider
        rpi = rp.intersections()
        # the closest intersection should be on panel3
        assert rpi[0][0] == 3
    print('OK')