rfw2d
    Preparing search index...

    Interface ReadonlyRect

    Read-only rectangle shape.

    x and y are the rectangle's origin, width and height extend along the positive x/y axes.

    interface ReadonlyRect {
        cx: number;
        cy: number;
        height: number;
        right: number;
        top: number;
        width: number;
        x: number;
        y: number;
        clone(): Rect;
        containsPoint(point: Vec2Like): boolean;
        containsRect(other: RectLike): boolean;
        equals(other: RectLike, epsilon?: number): boolean;
        intersectsRect(other: RectLike): boolean;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    cx: number

    Rect center x.

    cy: number

    Rect center y.

    height: number
    right: number

    Rect x plus width.

    top: number

    Rect y plus height.

    width: number
    x: number
    y: number

    Methods