math-object

1.0.0 • Public • Published

Math Object

Version Download Build Status

本项目试图用对象表示点、矢量等,使数学运算更加简单。

Install

npm install math-object

or

<script src="math-object.js"></script>

API Doc

Point 点类

  • getDistanceByPoint
  • getPointByVector
  • getPointByPoint
  • getMiddlePointByPoint
  • getPointsBesideConnection
  • getPointsBesideMiddlePoint
  • getVectorByPoint

Vector 矢量类

  • mergeVector
  • getOppositeVector
  • getVerticalVector

Util 功能方法

  • getOpposite
  • getReciprocal
  • getDivisors
  • getGreatestCommonDivisor
  • getLeastCommonMultiple

Readme

Keywords

Package Sidebar

Install

npm i math-object

Weekly Downloads

10

Version

1.0.0

License

MIT

Unpacked Size

119 kB

Total Files

23

Last publish

Collaborators

  • xiaoda