@ilihub/semi-circle
A collection of useful TypeScript functions for semi circle related operations.
Installation
# if you're using pnpm
pnpm add @ilihub/semi-circle
# or, if you're using npm
npm install @ilihub/semi-circle
# or, if you're using yarn
yarn add @ilihub/semi-circle
Usage
import { SemiCircle } from "@ilihub/semi-circle";
const radius = 5;
const semiCircle = new SemiCircle(radius);
const area = semiCircle.area();
console.log(area); // 39.269908169872416
const perimeter = semiCircle.perimeter();
console.log(perimeter); // 25.707963267948966
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.