59 alpha_out = float( a );
60 beta_out = float( b );
70 double sa = sin( ai ), ca = cos( ai );
71 double se = sin( ei ), ce = cos( ei );
77 ao = atan2( m_const.t1*sa_ce - m_const.t2*se + m_const.t3*ca_ce,
78 m_const.t4*sa_ce - m_const.t5*se + m_const.t6*ca_ce );
79 eo = asin( m_const.t7*sa_ce + m_const.t8*se + m_const.t9*ca_ce );
89 azimuth_out = float( a );
90 elevation_out = float( e );
100 double sa = sin( ai ), ca = cos( ai );
101 double se = sin( ei ), ce = cos( ei );
104 double sa_ce = sa*ce;
105 double ca_ce = ca*ce;
107 ao = atan2( m_const.t1*sa_ce + m_const.t7*se + m_const.t4*ca_ce,
108 m_const.t3*sa_ce + m_const.t9*se + m_const.t6*ca_ce );
109 eo = -asin( m_const.t2*sa_ce - m_const.t8*se + m_const.t5*ca_ce );
115 void DAFFSCTransform::RotationConstants::Init(
double yaw,
double pitch,
double roll )
121 double sy = sin( y ), cy = cos( y );
122 double sp = sin( p ), cp = cos( p );
123 double sr = sin( r ), cr = cos( r );
125 t1 = ( cy*cr - sy*sp*sr );
126 t2 = ( cy*sr + sy*sp*cr );
128 t4 = ( -sy*cr - cy*sp*sr );
129 t5 = ( -sy*sr + cy*sp*cr );
float fPitchAngleDeg
Pitch angle (degrees)
float fRollAngleDeg
Roll angle (degrees)
static double rad2grad(double phi)
float fYawAngleDeg
Yaw angle (degrees)
static double grad2rad(double phi)
Data class for orientations in yaw-pitch-roll (YPR) angles (right-handed OpenGL coordinate system) ...