intersections2 (center1,
radius1,
center2,
radius2,
sphere=True,
Vector=None,
**Vector_kwds)
|
|
Compute the intersection of two spheres or circles, each defined by a
center point and a radius.
- Arguments:
center1 - Center of the first sphere or circle (Vector3d, Vector3Tuple or
Vector4Tuple ).
radius1 - Radius of the first sphere or circle (same units as the
center1 coordinates).
center2 - Center of the second sphere or circle (Vector3d, Vector3Tuple or
Vector4Tuple ).
radius2 - Radius of the second sphere or circle (same units as the
center1 and center2
coordinates).
sphere - If True compute the center and radius of the
intersection of two spheres. If False , ignore the
z -component and compute the intersection of two
circles (bool ).
Vector - Class to return intersections (Vector3d or Vector3Tuple ) or
None for Vector3d.
Vector_kwds - Optional, additional Vector keyword
arguments, ignored if Vector=None .
- Returns:
- 2-Tuple of the
center and radius of the
intersection of the spheres if sphere is
True . The radius is 0.0
for abutting spheres. Otherwise, a 2-tuple of the intersection
points of two circles. For abutting circles, both intersection
points are the same Vector instance.
- Raises:
|