# Function G2lib::intersect

- Defined in File G2lib_intersect.cc

## Function Documentation

void G2lib::intersect(BaseCurve const &C1, BaseCurve const &C2, IntersectList &ilist, bool swap_s_vals)

  Collect the intersection of the two curve.

  Parameters

    - C1 – [in] first curve

    - C2 – [in] second curve

    - ilist – [out] list of the intersection (as parameter on the curves)

    - swap_s_vals – [out] if true store `(s2,s1)` instead of `(s1,s2)` for each intersection