Aha! - There's the missing bitFor the calculation of the Planes 3 points (systems) are involved:
2 Fix Reference System + The unknown System/point that you call P0.
The plane(s) are calulated with xref1,yref1,zref1,xref2,yref2,zref2 and r1 and r2.
Ok I can see now how it would work.I calculate the plane of this circle.
Instead limiting the possible positions for P0 on this circle I limit it on the plane of this circle. I throw away information for the benefit to convert it into a linear system.
something with planes is mostly linear a circle mostly not.
And I can see why p0 would be in that plane obviously.
I wonder a bit about the math - Because it will also fail in the case where all refs are co-planar (you'll get a line instead of a point)
I'm curious how the math looks, as it's solution can turn out both a point and a line (if co-planar), which must make the math look a bit "funny".
(unless ofc somewhere it gets short-circuited by a division by zero or something),
And how do you deal with the fact that the distances are not exact (rounding errors) - As the math relies on exact values to work (it's the same for std trilation - But it will always produce a result regardless, it just might not be correct