Require that a rectangle r contains a circle c with optional margin padding.

  • Parameters

    • rect: Vec2[]

      The top-right, top-left, bottom-left, bottom-right points (in that order) of rectangle rect

    • c: Vec2

      Center of c

    • r: Num

      Radius of c

    • padding: Num = 0

      Margin between the polygon and the point (default: 0)

    Returns Num