【文件属性】:
文件名称:DnNearestLinkFinder:查找属于图形的最近点
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-27 09:54:06
JavaScript
DnNearestLinkFinder
查找属于图形的最近点。
该库使用库的图。
例子
import createGraph from 'ngraph.graph' ;
import DnNearestLinkFinder from 'dn_nearest_link_finder' ;
// Create graph
let graph = createGraph ( ) ;
graph . addNode ( 1 , { xy : [ 0 , 0 ] } ) ;
graph . addNode ( 2 , { xy : [ 0 , 1 ] } ) ;
graph . addNode ( 3 , { xy : [ 1 , 1 ] } ) ;
graph . addNode ( 4 , { xy : [ 1 , 0 ] } ) ;
graph . addLink ( 1 , 2 ) ;
【文件预览】:
DnNearestLinkFinder-master
----helpers.js(2KB)
----yarn.lock(28KB)
----LICENSE(1KB)
----test()
--------findNearest.test.js(3KB)
----README.md(800B)
----.gitignore(19B)
----index.js(7KB)
----package.json(763B)