gradum-kit - v0.1.0
    Preparing search index...

    Function aabbCorners

    • Function

      aabbCorners

      Parameters

      • r: DOMRect

        The rectangle to read.

      Returns [Point, Point, Point, Point]

      The corners: top-left, top-right, bottom-right, bottom-left.

      List the four corners of an axis-aligned rectangle, in clockwise order starting top-left. Use it to feed a DOMRect into the polygon helpers, which expect point lists.