monotone-convex-hull-2d

WebJar for monotone-convex-hull-2d

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

monotone-convex-hull-2d
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

monotone-convex-hull-2d
WebJar for monotone-convex-hull-2d
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mikolalysenko/monotone-convex-hull-2d

Скачать monotone-convex-hull-2d

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/monotone-convex-hull-2d/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>monotone-convex-hull-2d</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/monotone-convex-hull-2d/
implementation 'org.webjars.npm:monotone-convex-hull-2d:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/monotone-convex-hull-2d/
implementation ("org.webjars.npm:monotone-convex-hull-2d:1.0.1")
'org.webjars.npm:monotone-convex-hull-2d:jar:1.0.1'
<dependency org="org.webjars.npm" name="monotone-convex-hull-2d" rev="1.0.1">
  <artifact name="monotone-convex-hull-2d" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='monotone-convex-hull-2d', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "monotone-convex-hull-2d" % "1.0.1"
[org.webjars.npm/monotone-convex-hull-2d "1.0.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : robust-orientation jar [1.1.3,2)

Модули Проекта

Данный проект не имеет модулей.

monotone-convex-hull-2d

Computes the convex hull of a set of points in the plane in O(n log(n)) time using the Monotone chain algorithm.

Example

var convexHull = require('monotone-convex-hull-2d')

var points = [
  [0, 0],
  [1, 0],
  [0, 1],
  [1, 1],
  [0.5, 0.5]
]

console.log(convexHull(points))

Output:

[ 0, 2, 3, 1 ]

Install

npm install monotone-convex-hull-2d

API

require('monotone-convex-hull-2d')(points)

Construct the convex hull of a set of points.

  • points is an array of points represented as an array of length 2 arrays

Returns The convex hull of the point set represented by a clockwise oriented list of indices.

Credits

(c) 2014 Mikola Lysenko. MIT License

Visualizer (c) 2013 Dan Melanz

Версии библиотеки

Версия
1.0.1