Circle Circle

john's Avatar

john

31 Jan, 2023 11:29 PM

Another new node: circle_circle

The circle_circle node finds the intersection points between two circles.

  • If the circles overlap, it will return two points
  • If the circles are tangent (touch in one spot), it will return one point
  • No points will be returned if:
    • the circles do not overlap or touch
    • the circles coincide (or have centers less than .01 pixels apart)
    • either circle has a diameter less than .01

Thanks to Jared Updike for the algorithm: https://gist.github.com/jupdike/bfe5eb23d1c395d8a0a1a4ddd94882ac

Enjoy! Circle_circle will be included in the next release of the Cartan Node Library. Please comment and share things you make with this or issues you encounter.

John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • circle_circle_screenshot.png 316 KB
  • circle_circle_demo.ndbx.zip 3.64 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

01 Oct, 2024 07:59 AM
30 Sep, 2024 11:37 PM
30 Sep, 2024 11:11 AM
30 Sep, 2024 02:37 AM
28 Sep, 2024 10:33 AM

 

26 Sep, 2024 06:41 AM
24 Sep, 2024 12:32 AM
24 Sep, 2024 12:27 AM
13 Sep, 2024 12:07 AM
12 Sep, 2024 11:54 PM
07 Sep, 2024 05:16 AM