# triangle-solver

> script for solving and drawing triangles based on given side length/angles

Latest version **1.1.1** (published 2020-07-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install triangle-solver
pnpm add triangle-solver
yarn add triangle-solver
bun add triangle-solver
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2020-07-09 |
| First published | 2020-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jacek Walasik |
| Maintainers | paleniozord |

## Links

- npm: https://www.npmjs.com/package/triangle-solver
- npm.io page: https://npm.io/package/triangle-solver

## Recent versions

- 1.1.1 (latest) — 2020-07-09
- 1.1.0 — 2020-07-09
- 1.0.9 — 2020-07-09
- 1.0.8 — 2020-07-02
- 1.0.7 — 2020-07-01
- 1.0.6 — 2020-06-29
- 1.0.5 — 2020-06-24
- 1.0.4 — 2020-06-24
- 1.0.3 — 2020-06-22
- 1.0.2 — 2020-06-17
- 1.0.1 — 2020-06-14
- 1.0.0 — 2020-04-04

## README

# triangleSolver
Simple script for solving and drawing triangles based on given side length and angles.

#Installation
npm install triangle-solver

#Usage
```javascript
let values = { //letter pairs i.e. a-A are opposite to each other as seen on picture above
  a:Int, //lowercase letters corresponds to sides length 
  b:Int, 
  c:Int, 
  A:Int, //uppercase letters corresponds to angle in degrees
  C:Int, 
  B:Int
}
let triangle = new Triangle(values)
```
Will return new instance of a triangle. 
Input requires precisely 3 values, including at least one side.

triangle.draw()
will return array of svg polygonal coordinates for solved triangle

#Contribution
Open an issue for any bugs or fork/pull

---
_Source: https://npm.io/package/triangle-solver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
