clubsandwich.line_of_sight
¶
Functions related to line of sight calculations
-
clubsandwich.line_of_sight.
get_visible_points
(vantage_point, get_allows_light, max_distance=30)¶ Parameters: - vantage_point (clubsandwich.geom.Point) –
- get_allows_light (function) –
get_allows_light(point) -> bool
- max_distance (int) –
Returns a set of all points visible from the given vantage point.
Adapted from this RogueBasin article.