本文整理汇总了C#中Orbit.GetANVector方法的典型用法代码示例。如果您正苦于以下问题:C# Orbit.GetANVector方法的具体用法?C# Orbit.GetANVector怎么用?C# Orbit.GetANVector使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Orbit
的用法示例。
在下文中一共展示了Orbit.GetANVector方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Print_Orbit_info
/// <summary>
///
/// </summary>
/// <param name="o">O.</param>
private static void Print_Orbit_info(Orbit o)
{
if (o == null) {
Debug.Log("Orbit is null");
return;
}
string Output = "";
Output += "Orbit Info \n";
Output += "\n activePatch:" + o.activePatch ;
Output += "\n altitude:"+ o.altitude ;
//Output += "\n an:"+ o.an ;
//Output += "\n ApA:"+ o.ApA ;
//Output += "\n ApR:"+ o.ApR ;
Output += "\n argumentOfPeriapsis:"+ o.argumentOfPeriapsis ;
//Output += "\n ClAppr:"+ o.ClAppr ;
//Output += "\n ClEctr1:"+ o.ClEctr1 ;
//Output += "\n ClEctr2:"+ o.ClEctr2 ;
Output += "\n closestEncounterBody:"+ o.closestEncounterBody ;
Output += "\n closestEncounterLevel:"+ o.closestEncounterLevel ;
Output += "\n closestEncounterPatch:"+ o.closestEncounterPatch ;
Output += "\n closestTgtApprUT:"+ o.closestTgtApprUT ;
//Output += "\n CrAppr:"+ o.CrAppr ;
//Output += "\n debugAN:"+ o.debugAN ;
//Output += "\n debugEccVec:"+ o.debugEccVec ;
//Output += "\n debugH:"+ o.debugH ;
//Output += "\n debugPos:"+ o.debugPos ;
//Output += "\n debugVel:"+ o.debugVel ;
//Output += "\n debug_returnFullEllipseTrajectory:"+ o.debug_returnFullEllipseTrajectory ;
//Output += "\n E:"+ o.E ;
//Output += "\n eccentricAnomaly:"+ o.eccentricAnomaly ;
//Output += "\n eccentricity:"+ o.eccentricity ;
//Output += "\n eccVec:"+ o.eccVec ;
//Output += "\n EndUT:"+ o.EndUT ;
Output += "\n epoch:"+ o.epoch ;
//Output += "\n FEVp:"+ o.FEVp;
//Output += "\n FEVs:"+ o.FEVs ;
//Output += "\n fromE:"+ o.fromE ;
//Output += "\n fromV:"+ o.fromV ;
//Output += "\n h:"+ o.h ;
//Output += "\n inclination:"+ o.inclination ;
//Output += "\n LAN:"+ o.LAN ;
//Output += "\n mag:"+ o.mag ;
//Output += "\n meanAnomaly:"+ o.meanAnomaly ;
//Output += "\n meanAnomalyAtEpoch:"+ o.meanAnomalyAtEpoch ;
Output += "\n nearestTT:"+ o.nearestTT ;
Output += "\n nextPatch:"+ o.nextPatch ;
Output += "\n nextTT:"+ o.nextTT ;
//Output += "\n ObT:"+ o.ObT ;
Output += "\n ObTAtEpoch :"+ o.ObTAtEpoch ;
//Output += "\n orbitalEnergy :"+ o.orbitalEnergy ;
//Output += "\n orbitalSpeed:"+ o.orbitalSpeed ;
//Output += "\n orbitPercent :"+ o.orbitPercent ;
Output += "\n patchEndTransition :"+ o.patchEndTransition ;
Output += "\n patchStartTransition :"+ o.patchStartTransition ;
//Output += "\n period :"+ o.period ;
//Output += "\n pos :"+ o.pos ;
Output += "\n previousPatch :"+ o.previousPatch ;
//Output += "\n radius :"+ o.radius ;
Output += "\n referenceBody :"+ o.referenceBody ;
//Output += "\n sampleInterval :"+ o.sampleInterval ;
Output += "\n secondaryPosAtTransition1 :"+ o.secondaryPosAtTransition1 ;
Output += "\n secondaryPosAtTransition2 :"+ o.secondaryPosAtTransition2 ;
//Output += "\n semiLatusRectum :"+ o.semiLatusRectum ;
//Output += "\n semiMajorAxis :"+ o.semiMajorAxis ;
//Output += "\n semiMinorAxis :"+ o.semiMinorAxis ;
//Output += "\n SEVp :"+ o.SEVp ;
//Output += "\n SEVs :"+ o.SEVs ;
//Output += "\n StartUT :"+ o.StartUT ;
Output += "\n timeToAp :"+ o.timeToAp ;
Output += "\n timeToPe :"+ o.timeToPe ;
Output += "\n timeToTransition1 :"+ o.timeToTransition1 ;
Output += "\n timeToTransition2 :"+ o.timeToTransition2 ;
//Output += "\n toE :"+ o.toE ;
//Output += "\n toV :"+ o.toV ;
//Output += "\n trueAnomaly :"+ o.trueAnomaly ;
//Output += "\n UTappr :"+ o.UTappr ;
//Output += "\n UTsoi :"+ o.UTsoi ;
//Output += "\n V :"+ o.V ;
//Output += "\n vel :"+ o.vel ;
Debug.Log(Output);
if (!o.activePatch) {
return;
}
try{
//Functions
Output = "Orbit Functions: \n";
Output += "\n PeA :"+ o.PeA ;
Output += "\n PeR :"+ o.PeR ;
Output += "\n GetANVector:"+ o.GetANVector() ;
Output += "\n GetEccVector:"+ o.GetEccVector() ;
Output += "\n GetFrameVel:"+ o.GetFrameVel() ;
Output += "\n GetHashCode:"+ o.GetHashCode() ;
//.........这里部分代码省略.........
示例2: getEquatorialANUT
/// <summary>
/// Gets the UT for the equatorial AN.
/// </summary>
/// <returns>The equatorial AN UT.</returns>
/// <param name="o">The Orbit to calculate the UT from.</param>
public static double getEquatorialANUT(Orbit o)
{
//TODO: Add safeguards for bad UTs, may need to be refactored to NodeManager
return o.GetUTforTrueAnomaly(o.GetTrueAnomalyOfZupVector(o.GetANVector()), 2);
}