Functions for detecting collisions where the first shape is a line segment. Lines are defined by two points (x1, y1) and (x2, y2).
| Function | Parameters | Description |
|---|---|---|
| `lineBox` | `x1, y1, x2, y2, xb, yb, wb, hb` | Line-box collision |
| `lineCircle` | `x1, y1, x2, y2, xc, yc, rc` | Line-circle collision |
| `lineEllipse` | `x1, y1, x2, y2, xe, ye, rex, rey` | Line-ellipse collision |
| `lineLine` | `x1, y1, x2, y2, x3, y3, x4, y4, thickness1, thickness2` | Line-line collision |
| `linePolygon` | `x1, y1, x2, y2, points, tolerance` | Line-polygon (convex) collision |
| `linePoint` | `x1, y1, x2, y2, xp, yp` | Line-point collision |
| `lineCircleOutline` | `x1, y1, x2, y2, xc, yc, rc` | Line-circle outline collision |