weighted-positioning

0.0.4 • Public • Published

weighted-positioning

Localization using weighted proximity of a set of coordinates

Installation

npm install weighted-positioning

Usage

const {calculate, Vector} = require("weighted-positioning")

let res = calculate([
  {v: new Vector(2, 4), w: 10},
  {v: new Vector(7, 13), w: 50},
  {v: new Vector(10, 2), w: 20}
])

console.log(res) // { x: 7.125, y: 9.125 }

Package Sidebar

Install

npm i weighted-positioning

Weekly Downloads

1

Version

0.0.4

License

GPL-3.0

Unpacked Size

39.6 kB

Total Files

5

Last publish

Collaborators

  • adwirawien