🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

barycentric

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barycentric

Converts points to barycentric coordinates

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
18K
-11.25%
Maintainers
1
Weekly downloads
 
Created
Source

barycentric

Computes the location of a point in a simplex in barycentric coordinates (aka areal coordinates).

Usage

Install using npm:

npm install barycentric

And then use as follows:

var barycentric = require("barycentric")

console.log(barycentric([[0,0], [0,1], [1,0]], [0.5, 0.5]))
//Prints:
//
//  [0, 0.5, 0.5]
//

Credits

(c) 2013 Mikola Lysenko. MIT License

Keywords

simplex

FAQs

Package last updated on 25 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts