@ilihub/circle
v1.0.4
Published
A collection of useful TypeScript functions for circle related operations.
Downloads
32
Maintainers
Readme
@ilihub/circle
A collection of useful TypeScript functions for circle related operations.
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.