@ilihub/cylinder
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@ilihub/cylinder

A collection of useful TypeScript functions for cylinder related operations.

NPM Version NPM CodeFactor Socket Badge

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.

Sponsors


Package Sidebar

Install

npm i @ilihub/cylinder

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

8.1 kB

Total Files

5

Last publish

Collaborators

  • harshraj8843