Problem 44910. Find the centre of an arc and its radius
Given two points on an arc (x0,y0) and (x1,y1) and the angle between them, alpha.
Return the centre of the circle and the radius.
E.g. Start (1,0) End (0,1) Span 90
The centre is (0,0) and the radius is 1.
Solution Stats
Problem Comments
-
3 Comments
Rafael S.T. Vieira
on 31 Oct 2020
This problem does not have an unique solution. Unless the angle between two points on an arc is 180 degrees, there is always two possible positions for the center. The problem should specifiy which is the right one, or accept both answers. I solved it using the center with the smallest distance to the origin.
Dyuman Joshi
on 7 Feb 2022
The test suite has been updated to accept any of the two possible solutions.
Christian Schröder
on 1 May 2023
The test suite does not use the values returned by the function.
Solution Comments
Show commentsProblem Recent Solvers14
Suggested Problems
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1082 Solvers
-
346 Solvers
-
611 Solvers
-
344 Solvers
-
Test Problem; Create a 5x5 array containing all ones
380 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!