1.0.0 • Published 7 years ago

@riccardoscalco/regular-polygons v1.0.0

Weekly downloads
1
License
BSD-3-Clause
Repository
github
Last release
7 years ago

Vertices coordinates of regular polygons.

Installing

npm install @riccardoscalco/regular-polygons

API Reference

import polygon from '@riccardoscalco/regular-polygons'

const NUMBER_OF_SIDES = 5;
const RADIUS = 1;
const pentagon = polygon(NUMBER_OF_SIDES);
const points = pentagon(RADIUS);

Dev

$ yarn

Build

$ yarn run build
$ yarn run test
1.0.0

7 years ago