+ 8

# How to draw an Arc through three points

Hi, I dont get the arc through that red three points. I hoped, I can do it with bezier https://code.sololearn.com/WJ3TuQj34IKv

5 Answers

+ 7

the intersection of perpendicular bisectors of two lines (joined by joining the points ) will give you the centre of a circle on which those 3 red points lie
I don't know web so I dont know how do it using code
I gave you a mathematical approach
I think I guessed it right what you were asking for😅

+ 4

I don't know enough JS to answer this. I tried bezier() in p5.js and also quadraticCurveTo() in regular canvas, but couldn't make either of them pass through the intermediate point.
The only solution that I can think of is doing some math to find the center and the radius of the circle.

+ 3

curveVertex( )
https://p5js.org/reference/#/p5/curveVertex

+ 2

Nice! This should work! Thanks Gordon Chan

0

اوافق رأي سوراب تيواري