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 = console//Prints://// [0, 0.5, 0.5]//
Credits
(c) 2013 Mikola Lysenko. MIT License