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