@core-graphics/rect
Version:
JS utilities for managing rects
15 lines (14 loc) • 526 B
TypeScript
import { PointValue } from "@core-graphics/point";
import { Rect, RectValue } from "./lite";
/**
* Returns whether a rectangle contains a specified point.
*/
export declare function containsPoint(r: Rect, p: PointValue): boolean;
/**
* Checks if a rectangle contains another rectangle
*/
export declare function containsRect(rA: Rect, v: RectValue | Rect): boolean;
/**
* Returns whether a Point or Rect is within this Rect
*/
export declare function contains(r: Rect, v: RectValue | PointValue): boolean;