Function rayIntersectEllipseDistance

Distance to ray intersection with an ellipse

  • Parameters

    • c: Vec2

      center of ellipse

    • rx: Num

      horizontal radius of ellipse

    • ry: Num

      vertical radius of ellipse

    • p: Vec2

      A point

    • v: Vec2

      A vector

    Returns Num

    The distance to intersection