intersection between two cones
5 ビュー (過去 30 日間)
古いコメントを表示
I have two circles with centre coordinates c1(x1,y1,z1) and c2(x2,y2,z2) and their radii r1 and r2, respectively.Both of the circles so that the normals to their planes pass through origin.
Now if you consider two cones with the vertex at origin and the circles as the base, how can I determine if there is an intersection between these cones in Matlab?
Note that I do not need to find the shape or coordinates of these intersections at this point, only checking if there is any intersection between these two coins.
I tried different methods, eg. try to rescale one of the circles to the same distance from origin as the other one and check if there is any intersection between the two circles. I got stuck somewhere in the way and could not proceed. I have also thought of using the concept of solid angle, but didn't get me anywhere.
Please help, I am desperate here.
0 件のコメント
回答 (1 件)
Thorsten
2013 年 2 月 7 日
Two circles intersect if their distance is smaller than the sum of their radii
sqrt((x1 - x2)^2 + (y1 - y2)^2)) < r1 + r2
If the z values of the circles are both positive or both negative,
z1 * z2 > 0
the corresponding cones will intersect.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!