Skip to main content
Version: Next

getRectCorners

Callable


  • Returns the four corners of an axis-aligned rectangle in clockwise order.


    Parameters

    • rect: Rect2D

      Rectangle to convert.

    Returns Point2D[]

    Top-left, top-right, bottom-right, and bottom-left points.