I want to write an algorithm that morphs or transforms

cdsommegolfzp

cdsommegolfzp

Answered question

2022-06-30

I want to write an algorithm that morphs or transforms an arc of a circle to a straight line joining both ends of the arc. I would like to understand the maths behind this such a transformation. How can this be done?

Answer & Explanation

conveneau71

conveneau71

Beginner2022-07-01Added 17 answers

If x ( t ) is a parametrization of your circle arc (see the other answers for how to find one), and y ( t ) a parametrization of the straight line segment joining the endpoints of the arc, then
F λ ( t ) = ( 1 λ ) x ( t ) + λ y ( t )
is the parametrizations for the circle arc when λ = 0, the parametrization of the line segment when λ = 1, and some intermediate form when λ ( 0 , 1 ) is something in between. This technique is called linear interpolation and is one way (out of infinitely many) to achieve such a blend.
So draw F λ ( t ) for λ = 0 and then slowly increase the value of λ and repeatedly daw the resulting curve.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in High school geometry

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?