linear-equation

1.0.15 • Public • Published

linear-equation-js

Library to perform basic algebra and geometry operations

Focus to:

  • point (x,y) and straight
  • r: [constantX, constantY, contents]

Scope

  • [x] Equation of the line
  • [x] Point of intersection
  • [x] Slope Angle
  • [ ] Middle point
  • [x] Distance between two points
  • [ ] Distance from a point to a line
  • [x] Slope of a straight line
  • [x] 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

Package Sidebar

Install

npm i linear-equation

Weekly Downloads

3

Version

1.0.15

License

MIT

Unpacked Size

6.37 kB

Total Files

3

Last publish

Collaborators

  • ivanfretes