1.0.1 • Published 7 months ago

@ilihub/cone v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@ilihub/cone

A collection of useful TypeScript functions for cone related operations.

NPM Version NPM CodeFactor Socket Badge

Installation

# if you're using pnpm
pnpm add @ilihub/cone

# or, if you're using npm
npm install @ilihub/cone

# or, if you're using yarn
yarn add @ilihub/cone

Usage

import { Cone } from "@ilihub/cone";

const radius = 5;
const slantHeight = 13;
const height = 13;

const cone = new Cone(radius, slantHeight, height);

const curvedSurfaceArea = cone.curvedSurfaceArea();
console.log(curvedSurfaceArea); // 204.20352248333654

const totalSurfaceArea = cone.totalSurfaceArea();
console.log(totalSurfaceArea); // 282.7433388230814

const volume = cone.volume();
console.log(volume); // 340.3392041388942

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