@taylorhmorris/geometry
    Preparing search index...

    Function newRect

    • Create a new Rect object from the top-left and bottom-right corners.

      Parameters

      • x1: number

        x parameter of the top-left corner

      • y1: number

        y parameter of the top-left corner

      • x2: number

        x parameter of the bottom-right corner

      • y2: number

        y parameter of the bottom-right corner

      Returns Rect

      the new Rect object