ixfx
    Preparing search index...

    Function intersectionDistanceCompute

    • Returns a generator function that checks for intersections with a static set of lines. The generator yields values of { distance: number, line: PolarLine }. Lines which have no intersecton are not returned.

      const c = intersectionDistanceCompute(line1, line2, line3);

      // Get all results for angle 0.2 as an array
      const computed = [...c.compute(0.2)]

      // Sort array by distance (ascending)
      computed.sort((a, b) => a.distance - b.distance);

      Parameters

      Returns IntersectionDistanceCompute