Function intersectsPoint

Returns true if point is within or on boundary of rect.

import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";
Rects.intersectsPoint(rect, { x: 100, y: 100});
Rects.intersectsPoint(rect, 100, 100);
  • Returns true if point is within, or on boundary of rect.

    import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";
    Rects.intersectsPoint(rect, { x: 100, y: 100});

    Parameters

    Returns boolean

  • Returns true if x,y coordinate is within, or on boundary of rect.

    import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";
    Rects.intersectsPoint(rect, 100, 100);

    Parameters

    Returns boolean