Function shapeDistanceRectlikePolyline

Returns the distance between a rectangle and a polyline.

  • Parameters

    • rect: Vec2[]

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

    • points: Vec2[]

      points of polyline

    Returns Num

    The distance between the rectangle and the polyline