Skip to contents

Check if a line segment intersects with a box Uses basic line-box intersection algorithm

Usage

line_intersects_box(x1, y1, x2, y2, xmin, ymin, xmax, ymax)