ns-allinone-2.35/satellite/satposition.cc
bool PolarSatPosition::isascending()
{	
	double partial = (fmod(NOW + time_advance_, period_)/period_) * 2*PI; //rad
	double theta_cur = fmod(initial_.theta + partial, 2*PI);
	if ((theta_cur > PI/2)&&(theta_cur < 3*PI/2)) {
		return 0;
	} else {
		return 1;
	}
}
//
// added by Lloyd Wood, 27 March 2000.
// allows us to distinguish between satellites that are ascending (heading north)
// and descending (heading south).
//
added by Lloyd Wood, 27 March 2000.
allows us to distinguish between satellites that are ascending (heading north)
and descending (heading south).
added by Lloyd Wood 27 March 2000 . allows us to distinguish between satellites that are ascending ( heading north ) and descending ( heading south ) .
bool PolarSatPosition::isascending()
{	
	double partial = (fmod(NOW + time_advance_, period_)/period_) * 2*PI; 
	double theta_cur = fmod(initial_.theta + partial, 2*PI);
	if ((theta_cur > PI/2)&&(theta_cur < 3*PI/2)) {
		return 0;
	} else {
		return 1;
	}
}
bool PolarSatPosition :: isascending ( ) { double partial = ( fmod ( NOW + time_advance_ , period_ ) / period_ ) * 2 * PI ; double theta_cur = fmod ( initial_ . theta + partial , 2 * PI ) ; if ( ( theta_cur > PI / 2 ) && ( theta_cur < 3 * PI / 2 ) ) { return 0 ; } else { return 1 ; } }
added by Lloyd Wood, 27 March 2000.
allows us to distinguish between satellites that are ascending (heading north)
and descending (heading south).
added by Lloyd Wood 27 March 2000 . allows us to distinguish between satellites that are ascending ( heading north ) and descending ( heading south ) .
//rad