# Intersection of 2 circle arcs

**URL:** https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424
**Category:** Coding Questions
**Created:** [April 18, 2019, 1:27pm UTC](https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424 "2019-04-18T13:27:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![CallMeGhosty](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@CallMeGhosty](https://discourse.processing.org/u/CallMeGhosty)
#### Post date: [April 18, 2019, 1:27pm UTC](https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424/1 "2019-04-18T13:27:13Z")

</div>

Hello,  
As the title says, I would like to get the X and Y coordinates of where the 2 arcs intersect.

I only know how to check if they do intersect… _hides in shame_

Challenge: Animate the drawing of the bisector of a triangle

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [April 18, 2019, 3:44pm UTC](https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424/2 "2019-04-18T15:44:44Z")

</div>

Did you look it up in Wikipedia?

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [April 18, 2019, 3:48pm UTC](https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424/3 "2019-04-18T15:48:01Z")

</div>

2nd

[http://jwilson.coe.uga.edu/emt668/EMAT6680.Folders/Howard/Bisector.of.Angle.of.TRIANGLE%20/BisectorOFAngleOFTriangle.html](http://jwilson.coe.uga.edu/emt668/EMAT6680.Folders/Howard/Bisector.of.Angle.of.TRIANGLE%20/BisectorOFAngleOFTriangle.html)

look at map() in the reference

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [April 18, 2019, 3:54pm UTC](https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424/4 "2019-04-18T15:54:26Z")

</div>

The article Chrisir found for you shows there no need to to use arcs for this problem.

---

<div class="post-metadata">

### Author: ![oshcha](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/oshcha/32/17252_2.png) [@oshcha](https://discourse.processing.org/u/oshcha)
#### Post date: [October 24, 2022, 11:07am UTC](https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424/5 "2022-10-24T11:07:40Z")

</div>

I have same/similar question - how to get coordinates of 2 intersecting arcs (parts of circle not ellipsis) (possible 0, 1, 2 intersection points) ?

I have found solution for finding interesection of 2 circles - [Find the intersections (two points) of two circles, if they intersect at all · GitHub](https://gist.github.com/jupdike/bfe5eb23d1c395d8a0a1a4ddd94882ac)

So what remains is find if these points belong to both arcs (parts of circle).

Any suggestions about this?

@quark I saw in some other comments you mention that you have done intersection with other simpler shapes, maybe you have also done for arcs?

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [October 25, 2022, 8:02am UTC](https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424/6 "2022-10-25T08:02:49Z")

</div>

I don’t have a ready-made solution to find the intersection of two circular arcs and since I am away from my computer I can’t develop one for you but I can suggest an algotithm you might use.

**Step 1**  
Assume that the arcs are two full circles and calculate the intersection points (if any)  
**Step 2**  
For each intersection point calculate the angle made for each circle using `atan2(iy - cy, ix - cx)` and see if the angle lies within the arc range. If it does for both arcs then you have a valid intersection point.
