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

1.0.3 • Public • Published

@ilihub/sphere

A collection of useful TypeScript functions for sphere related operations.

NPM Version NPM CodeFactor Socket Badge

Installation

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

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

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

Usage

import { Sphere } from "@ilihub/sphere";

const radius = 5;

const sphere = new Sphere(radius);

const circumference = sphere.circumference();
console.log(circumference); // 31.41592653589793

const surfaceArea = sphere.surfaceArea();
console.log(surfaceArea); // 314.1592653589793

const volume = sphere.volume();
console.log(volume); // 523.5987755982989

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/sphere

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

7.63 kB

Total Files

5

Last publish

Collaborators

  • harshraj8843