Skip to content
Advertisement

What is the best way to determine whether a bezier is overlapping a circle?

In Java / Processing, I want to test whether a bezier curve is overlapping a circle, so that I can shift one of them out of the way.

Is there a simple way to do this?

Advertisement

Answer

You can use the bezierPoint() function to get a series of points along a Bezier curve.

Then you could test those points against your circle.

From the reference:

JavaScript


(source: processing.org)

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement