https://github.com/techgaun/ex_raycast
A simple raycast algorithm implementation in Elixir
https://github.com/techgaun/ex_raycast
elixir polygon raycast raycast-algorithm
Last synced: 9 months ago
JSON representation
A simple raycast algorithm implementation in Elixir
- Host: GitHub
- URL: https://github.com/techgaun/ex_raycast
- Owner: techgaun
- Created: 2016-10-07T16:11:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T14:50:55.000Z (over 7 years ago)
- Last Synced: 2025-06-06T21:47:07.834Z (10 months ago)
- Topics: elixir, polygon, raycast, raycast-algorithm
- Language: Elixir
- Size: 102 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/techgaun/westar_service_territory) using Elixir and is not perfect.
## Installation
If [available in Hex](https://hex.pm/docs/publish), 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
```
2. Ensure `ex_raycast` is started before your application:
```elixir
def application do
[applications: [:ex_raycast]]
end
```