1.1.1 • Published 4 years ago

triangle-solver v1.1.1

Weekly downloads
12
License
ISC
Repository
-
Last release
4 years ago

triangleSolver

Simple script for solving and drawing triangles based on given side length and angles.

#Installation npm install triangle-solver

#Usage

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

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago