easy-util-tools
  • 👋Welcome to easy-util-tools
  • baseClass(基本类)
    • Color(颜色)
    • Point(点)
    • Line(线)
    • Circle(圆)
    • Rectangle(矩形)
    • Gradient(渐变色)
    • TimeMonitoring(时间统计)
  • utils(工具)
    • formatAmount(格式金额)
    • getStandardCoordinate
Powered by GitBook
On this page
  1. baseClass(基本类)

Rectangle(矩形)

// Import the class
import { Rectangle } from 'easy-util-tools'

let rectangle = new Rectangle(point, width, height);
 /**
  *  判断点是否在矩形内
  * Determines whether the point is inside a rectangle
  * @param point
  * @constructor
  */
  let isInMatrix = rectangle.isPointInMatrix(point); 
PreviousCircle(圆)NextGradient(渐变色)

Last updated 2 years ago