ixfx
    Preparing search index...

    Function getEdgeY

    • Returns a point on the edge of rectangle

      import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";

      const r1 = {x: 10, y: 10, width: 100, height: 50};
      Rects.getEdgeY(r1, `right`); // Yields: 10
      Rects.getEdgeY(r1, `bottom`); // Yields: 60

      const r2 = {width: 100, height: 50};
      Rects.getEdgeY(r2, `right`); // Yields: 0
      Rects.getEdgeY(r2, `bottom`); // Yields: 50

      Parameters

      Returns number