SkillAgentSearch skills...

Barycentric

Converts points to barycentric coordinates

Install / Use

/learn @mikolalysenko/Barycentric
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated6mo ago
Forks1

Languages

JavaScript

Security Score

77/100

Audited on Oct 7, 2025

No findings