@ilihub/cylinder
v1.0.1
Published
A collection of useful TypeScript functions for cylinder related operations.
Downloads
3
Maintainers
Readme
@ilihub/cylinder
A collection of useful TypeScript functions for cylinder related operations.
Installation
# if you're using pnpm
pnpm add @ilihub/cylinder
# or, if you're using npm
npm install @ilihub/cylinder
# or, if you're using yarn
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); // 314.1592653589793
const totalSurfaceArea = cylinder.totalSurfaceArea();
console.log(totalSurfaceArea); // 471.23889803846896
const volume = cylinder.volume();
console.log(volume); // 785.3981633974483
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.