1.0.4 • Published 7 months ago

@ilihub/circle v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@ilihub/circle

A collection of useful TypeScript functions for circle related operations.

NPM Version NPM CodeFactor Socket Badge

Installation

# if you're using pnpm
pnpm add @ilihub/circle

# or, if you're using npm
npm install @ilihub/circle

# or, if you're using yarn
yarn add @ilihub/circle

Usage

import { Circle } from "@ilihub/circle";

const radius = 10;

const circle = new Circle(radius);

const area = circle.area();
console.log(area); // 314.1592653589793

const circumference = circle.circumference();
console.log(circumference); // 62.83185307179586

Available Functions and Classes


Sponsors & Backers

Support the development of new open-source projects from ilihub through crowdfunding.

The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.

Sponsors