Equation of a constrained circle
조회 수: 3(최근 30일)
표시 이전 댓글
I have a circle with known parameters (x,y,r):
x = 37
y = -7
r = 38
I would like to find the parameters of a new circle (x2,y2,r2) that:
- Passes through the origin [0,0]
- Passes through the point [x,y+r]
- Keeps the same x value (ie, x2==x)
Can anyone wrap their head around this one? Basically it's like pinning the max-y point on the first circle, and then growing-shrinking that circle until it crosses the origin.
답변(1개)
Youssef Khmou
2013년 5월 18일
hi try to verify this initiation :
the first circle is defined by :
a=37;b=-7;r=38;
We are looking for new circle based on The three conditions :
1.a2^+b2^=r2^2
2.(a-a2)²+((b+r)-b2)^2=r2^2
3.a2=a;
the solution is ( to be verified ):
a2=a;
b2==((b+r)^2+a^2)/(2*(b+r));
r2=r2=b+r-b2;
....
댓글 수: 0
참고 항목
범주
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!