Hi!

>I was also trying moveToJ2000, translating AltAz coordinates with
StelCore::altAzToJ2000, but as these methods are not well documented i'm
stuck at understanding what paramters do they accept (Vector3, meaning Alt,
Az and....? also, it's radians? deg?)

Please try it:

StelMovementMgr* mvmgr = GETSTELMODULE(StelMovementMgr);
Q_ASSERT(mvmgr);

Vec3d aim;
double dAlt = StelUtils::getDecAngle(alt);
double dAzi = M_PI - StelUtils::getDecAngle(azi);

StelUtils::spheToRect(dAzi,dAlt,aim);
mvmgr->moveToJ2000(StelApp::getInstance().getCore()->altAzToJ2000(aim,
StelCore::RefractionOff), 1);

-- 
With best regards, Alexander

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stellarium-pubdevel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel

Reply via email to