ixfx
    Preparing search index...

    Function isEqualSize

    • 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 different
      Rects.isEqualSize(rectA, rectB);

      // False, because coordinates are different
      Rects.isEqual(rectA, rectB)

      Parameters

      Returns boolean