Tudat/Astrodynamics/OrbitDetermination/ObservationPartials/angularPositionPartial.cpp
//! Function to compute the derivative of (direct geometric) right ascension w.r.t. position of observer or observed object.
Function to compute the derivative of (direct geometric) right ascension w.r.t. position of observer or observed object.
Function to compute the derivative of ( direct geometric ) right ascension w . r . t . position of observer or observed object .
Eigen::Matrix< double, 1, 3 > calculatePartialOfRightAscensionWrtLinkEndPosition(
        const Eigen::Vector3d& relativeRangeVector,
        const bool isLinkEndReceiver )
{
    double partialMultiplier = ( ( isLinkEndReceiver ) ? 1.0 : -1.0 );
    Eigen::Matrix< double, 1, 3 > partial = Eigen::Matrix< double, 1, 3 >::Zero( );
    partial( 0 ) = -relativeRangeVector( 1 );
    partial( 1 ) = relativeRangeVector( 0 );
    partial /= ( partialMultiplier * ( relativeRangeVector( 0 ) * relativeRangeVector( 0 ) +
                                       relativeRangeVector( 1 ) * relativeRangeVector( 1 ) ) );
    return partial;
}
Eigen :: Matrix < double , 1 , 3 > calculatePartialOfRightAscensionWrtLinkEndPosition ( const Eigen :: Vector3d & relativeRangeVector , const bool isLinkEndReceiver ) { double partialMultiplier = ( ( isLinkEndReceiver ) ? 1.0 : -1.0 ) ; Eigen :: Matrix < double , 1 , 3 > partial = Eigen :: Matrix < double , 1 , 3 > :: Zero ( ) ; partial ( 0 ) = - relativeRangeVector ( 1 ) ; partial ( 1 ) = relativeRangeVector ( 0 ) ; partial /= ( partialMultiplier * ( relativeRangeVector ( 0 ) * relativeRangeVector ( 0 ) + relativeRangeVector ( 1 ) * relativeRangeVector ( 1 ) ) ) ; return partial ; }
Function to compute the derivative of (direct geometric) right ascension w.r.t.
Function to compute the derivative of ( direct geometric ) right ascension w . r . t .
// Define multiplier of patial vector // Set partial vector