Module nyx_space::utils[][src]

Expand description

Utility functions shared by different modules, and which may be useful to engineers.

Functions

between_0_360

Returns the provided angle bounded between 0.0 and 360.0

between_pm_180

Returns the provided angle bounded between -180.0 and +180.0

between_pm_x

Returns the provided angle bounded between -x and +x

capitalize
denormalize
is_diagonal

Returns whether the provided square matrix (3x3) is diagonal

kronecker

The Kronecker delta function

normalize
perpv

Returns the components of vector a orthogonal to b

projv

Returns the projection of a onto b

r1

Returns a rotation about the X axis. The angle must be provided in radians.

r2

Returns a rotation about the Y axis. The angle must be provided in radians.

r3

Returns a rotation about the Z axis. The angle must be provided in radians.

rotv

Rotate a vector about a given axis

rss_errors

Computes the RSS state errors in two provided vectors

rss_orbit_errors

Returns the RSS orbit errors in kilometers and kilometers per second

rss_orbit_vec_errors

Computes the RSS state errors in position and in velocity of two orbit vectors [P V]

tilde_matrix

Returns the tilde matrix from the provided Vector3.