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); 

Last updated