This function calculates the intersection of two circumferences, given their centers and radius \(c1,r1\) and \(c2,r2\), respectively.
inter(c11, c12, r1, c21, c22, r2)
X-coordinate of the center \(c1\).
Y-coordinate of the center \(c1\).
Radius \(r1\).
X-coordinate of the center \(c2\).
Y-coordinate of the center \(c2\).
Radius \(r2\).
A list with the following components:
Number of intersection points (0,1,2, or Inf).
If there are two intersection points, v1
is the numeric vector whose components are the coordinates of the unitary vector that has its origin in \(c1\) and it's perpendicular to the chord that joins the intersection points of the two circumferences. Otherwise, v1=(0,0)
Angle that forms v1
with the radius that joins the center \(c1\) with an intersection point.
If there are two intersection points, v2
is the numeric vector whose components are the coordinates of the unitary vector that has its origin in \(c2\) and it's perpendicular to the chord that joins the intersection points of the two circumferences. Otherwise, v2=(0,0)
Angle that forms v2
with the radius that joins the center \(c2\) with an intersection point.
The function inter
is internally called by the function ahull
.