Function shapeDistancePolyEllipse

Returns the distance between a polygon and an ellipse.

  • Parameters

    • pts: Vec2[]

      The list of points for the polygon

    • c: Vec2

      center of the ellipse

    • rx: Num

      horizontal radius of ellipse

    • ry: Num

      vertical radius of ellipse

    Returns Num

    The distance between the polygon and the ellipse