1.0.0 • Published 5 years ago

math-object v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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
1.0.0

5 years ago

0.2.0

6 years ago

0.1.0

6 years ago