• Calculates all intersections of the given box with the given curve.

    Parameters

    • x: number

      X position of top left corner of box

    • y: number

      Y position of top left corner of box

    • w: number

      width of box

    • h: number

      height of box

    • curve: Curve

    Returns PointXY[]

    Array of intersecting points.

Version :