1.0.3 • Published 7 months ago

@ilihub/sphere v1.0.3

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

@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