Package Exports
- circumcenter-calculator
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (circumcenter-calculator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Calculate circumcenter given 3 coordinates
This package allows you to calculate the circumcenter of a triangle given 3 points.
How to use
const Point = require('circumcenter-calculator').Point;
const calculate = require('circumcenter-calculator').calculate;
const pointA = new Point(3,2);
const pointB = new Point(1,4);
const pointC = new Point(5,4);
const cirucmcenter = calculate(pointA, pointB, pointC);
console.log(cirucmcenter);
/**
* Point {
* x: 3,
* y: 4
* }
*/