A simple raycast algorithm implementation in Elixir
ExRaycast
is the implementation of ray casting algorithm to determine if a point is in the polygon or not. It also includes a simple
implementation that can be used for the cases where there's a hole in the polygon.
This was used to test westar kml using Elixir and is not perfect.
If available in Hex, the package can be installed as:
- Add
ex_raycast
to your list of dependencies inmix.exs
:
```elixir
def deps do
[{:ex_raycast, "~> 0.1.0"}]
end
```
- Ensure
ex_raycast
is started before your application:
```elixir
def application do
[applications: [:ex_raycast]]
end
```