rapid-sdk
    Preparing search index...

    Function geomPathIntersections

    • Return all intersection points of 2 paths

      Parameters

      Returns Vec2[]

      intersection points

      b0
      | \
      a0 ---*--*--- a1
      | \
      b1 -- b2
      const a = [[0, 0], [10, 0]];
      const b = [[5, 5], [5, -5], [10, -5], [5, 5]];
      geomPathIntersections(a, b); // returns [[5, 0], [7.5, 0]]