A rectangle.

Constructors

  • Parameters

    • xMin: number
    • xMax: number
    • yMin: number
    • yMax: number

    Returns Rect

Properties

xMax: number
xMin: number
yMax: number
yMin: number

Accessors

Methods

  • Parameters

    • other: Rect

      The other rect.

    • epsilon: number = 0.0001

      The comparison epsilon.

    Returns boolean

    True if they are equal.

  • Returns the equivalent rectangle of source normalized over the dimensions of dest.

    Parameters

    • source: Rect

      The source rect.

    • dest: Rect

      The destination rect.

    Returns {
        h: number;
        w: number;
        x: number;
        y: number;
    }

    • h: number
    • w: number
    • x: number
    • y: number