osg::Quat HPRToQuat(double heading, double pitch, double roll) { osg::Quat q( roll, osg::Vec3d(0.0, 1.0, 0.0), pitch, osg::Vec3d(1.0, 0.0, 0.0), heading, osg::Vec3d(0.0, 0.0, 1.0)); return q; } // Quat to HPR,pitch范围:[-PI/2, PI/2] void QuatToHPR(osg:…