@ilihub/cylinder
A collection of useful TypeScript functions for cylinder related operations.
Installation
pnpm add @ilihub/cylinder
npm install @ilihub/cylinder
yarn add @ilihub/cylinder
Usage
import { Cylinder } from "@ilihub/cylinder";
const radius = 5;
const height = 10;
const cylinder = new Cylinder(radius, height);
const lateralSurfaceArea = cylinder.lateralSurfaceArea();
console.log(lateralSurfaceArea);
const totalSurfaceArea = cylinder.totalSurfaceArea();
console.log(totalSurfaceArea);
const volume = cylinder.volume();
console.log(volume);
Available Functions and Classes
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.