So, I have a 2d hex grid, where each hex is either a wall or a path, and I'd like to implement line-of-sight (in the sense of "a hex is visible from another hex if you can draw a straight line from any part of the start hex to any part of the end hex without touching any wall hexes (where the edges and vertices of a hex are considered touching that hex)").
Raycasting from a single point in the starting hex is slow and inaccurate. I thought about raycasting from every vertex of the starting hex, but that is even slower, and there are cases where it still doesn't work (mainly on larger grids)
There ought to be an algorithm for doing this that is better. I mean, it's essentially "just" a floodfill with restrictions. Any suggestions?