Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.formatter.exs
.gitignore
LICENSE
README.md
mix.exs
mix.lock

README.md

Delaunay

Elixir library for Delaunay triangulation of 2D points

Example

points = [{111, 0}, {98, 77}, {57, 194}, {120, 110}, {28, 187}, {113, 61}, {43, 36}, ...]

delaunay =
  points  
  |> Delaunay.from

IO.inspect delaunay.triangles
// [1, 18, 5, 1, 3, 18, 1, 29, 3, 3, 29, 18, 15, 31, 18, 18, 31, 5,
   31, 14, 5, 31, 16, 14, 25, 17, 29, 29, 10, 18, 1, 25, 29, 8, 28, 5, ...],

Installation

If available in Hex, the package can be installed by adding delaunay to your list of dependencies in mix.exs:

def deps do
  [
    {:delaunay, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/delaunay.

You can’t perform that action at this time.