pub fn triangulate_from_pulsars(
anchors: &[PulsarAnchor; 4],
observed_phases: &[f64; 4],
) -> Result<[f64; 3], &'static str>Expand description
Triangulate 3D BCRS position $\mathbf{r} = [x, y, z]$ (m) from 4 pulsar phase observations (OCS-12, §6.2.5.2).
Each pulsar $i \in {0, 1, 2, 3}$ yields an observed phase offset $\Delta\phi_i$ (cycles) relative to the BCRS origin reference model:
$$\Delta t_i = \Delta\phi_i \cdot P_i - \Delta t_{\text{DM},i} = -\frac{\hat{n}i \cdot \mathbf{r}}{c_0} + \delta t{\text{clock}}$$
Differencing anchors $i = 1, 2, 3$ against anchor $0$ cancels the unknown local clock bias $\delta t_{\text{clock}}$ and produces a $3\times 3$ linear system $(\hat{n}0 - \hat{n}i) \cdot \mathbf{r} = c_0 (\Delta t{\text{vac},i} - \Delta t{\text{vac},0})$.