Function signedDistanceEllipse

Returns the distance between an ellipse and a point

  • Parameters

    • c: Vec2

      center of ellipse

    • rx: Num

      horizontal radius of ellipse

    • ry: Num

      vertical radius of ellipse

    • pt: Vec2

      the point

    Returns Num

    The signed distance