intersection between two cones
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Thorsten
am 7 Feb. 2013
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 Kommentare
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!