1.0.15 • Published 6 months ago

linear-equation v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

linear-equation-js

Library to perform basic algebra and geometry operations

Focus to:

Scope

  • Equation of the line
  • Point of intersection
  • Slope Angle
  • Middle point
  • Distance between two points
  • Distance from a point to a line
  • Slope of a straight line
  • Angle in sexagecimal and radian notation
  • Angle between two lines
  • Complement and Supplement of an angle

Install

$ npm i linear-equation

Use

   import { genLinearEquation } from 'linear-equation';

   // Get an array with aX + bY + c
   const [a, b, c] = genLinearEcuation(
      [-57.5516653060913, -25.336896667846172 ],
      [-57.552150785923, 25.338130579204833]
   );

   // This is the same than general form of equation
   console.log(`${a}x + ${b}y  + ${c} `)

Todo

  • Improve docs
  • Add new features
1.0.15

6 months ago

1.0.14

6 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago