lamberthub.utils.misc
#
Miscellany utilities
Module Contents#
Functions#
|
Returns solver's name. |
|
Returns the initial and final position vectors contained in the reference |
- lamberthub.utils.misc.get_solver_name(solver)#
Returns solver’s name.
- Parameters:
solver (function) – Solver function.
- Returns:
name – String representation for the solver.
- Return type:
str
- lamberthub.utils.misc._get_sample_vectors_from_theta_and_rho(theta, rho)#
Returns the initial and final position vectors contained in the reference XY plane being given the transfer angle and the norm ration between them.
- Parameters:
theta (float) – The transfer angle.
rho (float) – The ratio between the norms of the final and initial vectors.
- Returns:
r1_vec (~np.array) – The initial position vector.
r2_vec (~np.array) – The final position vector.
Notes
The purpose of this function is to easily generate initial data for the Lambert’s problem in the sense of position vectors. The function is used by the performance plotters and to generate various time of flight curves for the different available algorithms.