This crate contains algorithms to compute visibility polygon.
This code is a Rust port of the C++ lib visibility.
The following example shows how to compute the visibility polygon of a point amongst line obstacles.
The [visibility
] method is provided by the [Visibility
] trait which is implemented for most geo-types.
```rust use geo::{Coordinate, Line}; use geo_visibility::Visibility;
let lines = [ Line::new( Coordinate { x: 0.0, y: 0.0 }, Coordinate { x: 1.0, y: 8.0 }, ), ];
let visibility_polygon = point.visibility(&lines); ```