import { Flag } from '../class/flag'; import { FixedInterval } from '../intervals/fixed'; import { ICloneable, IEquatable, ISupportCopyFrom, SimpleConverter } from '../types'; import { IPoint, IRectangle, ISize } from './interfaces'; import { Margins } from './margins'; import { Parallelogram } from './parallelogram'; import { Point } from './point'; import { Polygon } from './polygon'; import { Size } from './size'; export declare class Rectangle implements IRectangle, IEquatable, ICloneable, ISupportCopyFrom { x: number; y: number; width: number; height: number; getRightBoundPosition(): number; getBottomBoundPosition(): number; init(x: number, y: number, width: number, height: number): this; initBySize(size: ISize): this; initByCenter(center: Point, minRadius: number): this; initByAnotherRectangle(obj: IRectangle): this; setHorizontalBounds(interval: FixedInterval): void; setSize(size: ISize): void; degenerate(): boolean; equals(obj: Rectangle): boolean; clone(): Rectangle; copyFrom(obj: IRectangle): void; containsPointByHeight(y: number): boolean; containsPointByWidth(x: number): boolean; containsPoint(x: number, y: number): boolean; applyMarginsInside(margins: Margins): this; applyMarginsOutside(margins: Margins): this; applyLeftInternalOffset(offset: number): this; applyRightInternalOffset(offset: number): this; applyLeftOuterOffset(offset: number): this; applyRightOuterOffset(offset: number): this; applyBottomOuterOffset(offset: number): this; applyBottomInternalOffset(offset: number): this; applyXOffset(offset: number): this; applyYOffset(offset: number): this; applyOffset(offset: IPoint): this; plus(obj: IPoint): this; applyConverter(converter: SimpleConverter): this; private applyMargins; static getIntersection(objA: IRectangle, objB: IRectangle): Rectangle | null; static getNonDegenerateIntersection(objA: Rectangle, objB: Rectangle): Rectangle | null; static equalsBinary(A: Rectangle, B: Rectangle): boolean; readonly verticalInterval: FixedInterval; readonly horizontalInterval: FixedInterval; readonly center: Point; readonly rectangle: Rectangle; readonly size: Size; readonly polygon: Polygon; readonly parallelogram: Parallelogram; } export declare class RelativeRect extends Margins { constructor(top?: number, right?: number, bottom?: number, left?: number); readonly isEmpty: boolean; } export declare enum HitTestDeviation { None = 0, Top = 1, Bottom = 2, Left = 4, Right = 8 } export declare class RectangleDeviation { initRectangle: Rectangle; initPoint: Point; deviation: Flag; offsetToInside: Point; insidePoint: Point; constructor(initRectangle: Rectangle, initPoint: Point); calcDeviation(): RectangleDeviation; calcAdditionalParams(): RectangleDeviation; } //# sourceMappingURL=rectangle.d.ts.map