Function buildPointsFromRect

  • Build rect points.

    Parameters

    • rect: RectLike

      Rect

    • closed: boolean = false

      Generate an additional point closing the rect (equal to first point)

    Returns Vec2[]

    Rect points