Module nyx_space::utils

source ·
Expand description

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

Functions

  • Returns whether this matrix represent a stable linear system looking at its eigen values. NOTE: This code is not super pretty on purpose to make it clear that we’re covering all of the cases
  • Returns the provided angle bounded between 0.0 and 360.0
  • Returns the provided angle bounded between -180.0 and +180.0
  • Returns the provided angle bounded between -x and +x
  • Converts the input vector V from Cartesian coordinates to spherical coordinates Returns ρ, θ, φ where the range ρ is in the units of the input vector and the angles are in radians
  • Returns whether the provided square matrix (3x3) is diagonal
  • The Kronecker delta function
  • Returns the order of mangitude of the provided value
  • Returns the components of vector a orthogonal to b
  • Returns the projection of a onto b
  • Returns a rotation about the X axis. The angle must be provided in radians. WARNING: this is a COORDINATE SYSTEM rotation by x radians; this matrix, when applied to a vector, rotates the vector by -x radians, not x radians. Applying the matrix to a vector yields the vector’s representation relative to the rotated coordinate system. Source: https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eul2xf_c.html
  • Returns a rotation about the Y axis. The angle must be provided in radians. WARNING: this is a COORDINATE SYSTEM rotation by x radians; this matrix, when applied to a vector, rotates the vector by -x radians, not x radians. Applying the matrix to a vector yields the vector’s representation relative to the rotated coordinate system. Source: https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eul2xf_c.html
  • Returns a rotation about the Z axis. The angle must be provided in radians. WARNING: this is a COORDINATE SYSTEM rotation by x radians; this matrix, when applied to a vector, rotates the vector by -x radians, not x radians. Applying the matrix to a vector yields the vector’s representation relative to the rotated coordinate system. Source: https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eul2xf_c.html
  • Rotate a vector about a given axis
  • Computes the RSS state errors in two provided vectors
  • Returns the RSS orbit errors in kilometers and kilometers per second
  • Computes the RSS state errors in position and in velocity of two orbit vectors [P V]
  • Converts the input vector V from Cartesian coordinates to spherical coordinates Returns ρ, θ, φ where the range ρ is in the units of the input vector and the angles are in radians
  • Returns the tilde matrix from the provided Vector3.
  • Returns the unit vector of the moved input vector