1.0.0 • Published 5 years ago
math-object v1.0.0
Math Object
本项目试图用对象表示点、矢量等,使数学运算更加简单。
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