Require that a polygon p contains point pt with optional margin padding.

  • Parameters

    • pts: Vec2[]

      List of points for polygon p

    • pt: Vec2

      Location of point pt

    • padding: Num = 0

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

    Returns Num