Function pecsim::correct_dir_newton¶
Defined in File raytrace.cc
Function Documentation¶
-
void pecsim::correct_dir_newton(double &t_prop, Vec3d &dir, double sf, const Vec3d &x1, const Vec3d &x2, double t_rx, RayTraceConfig config, VecXd &zf, bool debug = false)¶
Correct the ray tracing result using a Newton method.
- Parameters:
iter – Current iteration number
t_prop – Propagation time in seconds
dir – Initial direction vector of the ray (normalized)
sf – Path length of the ray (computed by correction)
txpos – Function to get the position of the transmitter at time t_tx
x2 – Position of the receiver in Cartesian coordinates
t_rx – Reception time in seconds since J2000 epoch
config – Ray trace configuration
zf – Final state vector containing the ray tracing results
debug – Debug flag to print additional information