@riccardoscalco/regular-polygons

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @riccardoscalco/regular-polygons

Weekly Downloads

1

Version

1.0.0

License

BSD-3-Clause

Last publish

Collaborators

  • riccardoscalco