本项目试图用对象表示点、矢量等,使数学运算更加简单。
npm install math-object
or
<script src="math-object.js"></script>
- getDistanceByPoint
- getPointByVector
- getPointByPoint
- getMiddlePointByPoint
- getPointsBesideConnection
- getPointsBesideMiddlePoint
- getVectorByPoint
- mergeVector
- getOppositeVector
- getVerticalVector
- getOpposite
- getReciprocal
- getDivisors
- getGreatestCommonDivisor
- getLeastCommonMultiple