Requires that rect1 contains rect2 with some optional margin padding.

  • Parameters

    • rect1: Vec2[]

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

    • rect2: Vec2[]

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

    • padding: Num = 0

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

    Returns Num