Function rayIntersectNormalEllipse

Normal at 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 Vec2

    The unit normal at the intersection point