mattdesl

mattdesl/triangle-centroid

computes the centroid of a triangle

JavaScript
4
0
MIT License

This is a small JavaScript library for computing the centroid (center of gravity) of a triangle given three vectors, which can be 2D, 3D, or higher-dimensional. It's designed for developers working with geometry calculations, such as those building graphics, physics simulations, or computational geometry tools in Node.js or the browser.

Total donated
Undistributed
Share with your subscribers: