Returns true if the width & height of the two rectangles is the same.
import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";const rectA = { width: 10, height: 10, x: 10, y: 10 };const rectB = { width: 10, height: 10, x: 20, y: 20 };// True, even though x,y are differentRects.isEqualSize(rectA, rectB);// False, because coordinates are differentRects.isEqual(rectA, rectB) Copy
import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";const rectA = { width: 10, height: 10, x: 10, y: 10 };const rectB = { width: 10, height: 10, x: 20, y: 20 };// True, even though x,y are differentRects.isEqualSize(rectA, rectB);// False, because coordinates are differentRects.isEqual(rectA, rectB)
Returns true if the width & height of the two rectangles is the same.