Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 811 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 811 Bytes

ExRaycast

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.

Installation

If available in Hex, the package can be installed as:

  1. Add ex_raycast to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:ex_raycast, "~> 0.1.0"}]
end
```
  1. Ensure ex_raycast is started before your application:
```elixir
def application do
  [applications: [:ex_raycast]]
end
```