Socket
Book a DemoInstallSign in
Socket

@ilihub/cone

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ilihub/cone

A collection of useful TypeScript functions for cone related operations.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@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

Keywords

ilihub

FAQs

Package last updated on 01 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts