# Function G2lib::intersectCircleCircle

- Defined in File G2lib.cc

## Function Documentation

int_type G2lib::intersectCircleCircle(real_type x1, real_type y1, real_type theta1, real_type kappa1, real_type x2, real_type y2, real_type theta2, real_type kappa2, real_type *s1, real_type *s2)

  Intersect the parametric arc

  \[ x = x_1+\frac{\sin(\kappa_1 s+\theta_1)-sin(\theta_1)}{\kappa_1} \]
  \[ y = y_1+\frac{\cos(\theta_1)-\cos(\kappa_1 s+\theta_1)}{\kappa_1} \]

  with the parametric arc

  \[ x = x_2+\frac{\sin(\kappa_2 s+\theta_2)-sin(\theta_2)}{\kappa_2} \]
  \[ y = y_2+\frac{\cos(\theta_2)-\cos(\kappa_2 s+\theta_2)}{\kappa_2} \]
  Parameters

    - x1 – [in] x-origin of the first arc

    - y1 – [in] y-origin of the first arc

    - theta1 – [in] initial angle of the first arc

    - kappa1 – [in] curvature of the first arc

    - x2 – [in] x-origin of the second arc

    - y2 – [in] y-origin of the second arc

    - theta2 – [in] initial angle of the second arc

    - kappa2 – [in] curvature of the second arc

    - s1 – [out] parameter2 of intersection for the first circle arc

    - s2 – [out] parameter2 of intersection for the second circle arc

  Returns

    the number of solution 0, 1 or 2