@ilihub/equilateral-triangle
v1.0.4
Published
A collection of useful TypeScript functions and utilities for performing Equilateral Triangle calculations.
Downloads
1
Maintainers
Readme
@ilihub/equilateral-triangle
A collection of useful TypeScript functions and utilities for performing calculations on equilateral triangles.
Installation
# if you're using pnpm
pnpm add @ilihub/equilateral-triangle
# or, if you're using npm
npm install @ilihub/equilateral-triangle
# or, if you're using yarn
yarn add @ilihub/equilateral-triangle
Usage
import { EquilateralTriangle } from "@ilihub/equilateral-triangle";
const side = 5;
const equilateralTriangle = new EquilateralTriangle(side);
const area = equilateralTriangle.area();
console.log(area); // 10.825317547305481
const perimeter = equilateralTriangle.perimeter();
console.log(perimeter); // 15
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.