trilaterate3d2 (center1,
radius1,
center2,
radius2,
center3,
radius3,
eps=2.22044604925e-16,
Vector=None,
**Vector_kwds)
|
|
Trilaterate three spheres each given as an 3d center and radius.
- Arguments:
center1 - Center of the 1st sphere (Vector3d, Vector3Tuple or
Vector4Tuple).
radius1 - Radius of this sphere (same units as x,
y and z).
center2 - Center of the 2nd sphere (Vector3d, Vector3Tuple or
Vector4Tuple).
radius2 - Radius of this sphere (same units as x,
y and z).
center3 - Center of the 3rd sphere (Vector3d, Vector3Tuple or
Vector4Tuple).
radius3 - Radius of the 3rd sphere (same units as
x, y and z).
eps - Tolerance (float).
Vector - Class to return intersections (Vector3d or Vector3Tuple) or
None for Vector3d.
Vector_kwds - Optional, additional Vector keyword
arguments, ignored if Vector=None.
- Returns:
- A 2-tuple
(tri1, tri2) with both trilaterated points
(Vector). Both tri1 and
tri2 are the same instance if all three spheres abut
or intersect in a single point.
- Raises:
ImportError - Package numpy not found, not installed or not at least
version 1.15.
IntersectionError - No intersection, near concentric, trilateration failed.
TypeError - Invalid center1, center2 or
center3.
ValueError - Invalid radius1, radius2 or
radius3.
|