本文整理汇总了C#中Orbit.GetVel方法的典型用法代码示例。如果您正苦于以下问题:C# Orbit.GetVel方法的具体用法?C# Orbit.GetVel怎么用?C# Orbit.GetVel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Orbit
的用法示例。
在下文中一共展示了Orbit.GetVel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Print_Orbit_info
//.........这里部分代码省略.........
//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() ;
Output += "\n GetOrbitNormal:"+ o.GetOrbitNormal() ;
Output += "\n GetRelativeVel:"+ o.GetRelativeVel() ;
Output += "\n GetType:"+ o.GetType() ;
Output += "\n GetVel:"+ o.GetVel() ;
Output += "\n GetWorldSpaceVel:"+ o.GetWorldSpaceVel() ;
//Unused Funtion (Tests?)
// Output += "\n :"+ o.DrawOrbit;
// Output += "\n :"+ o.Equals ;
// Output += "\n :"+ o.GetDTforTrueAnomaly() ;
// Output += "\n :"+ o.GetEccentricAnomaly ;
// Output += "\n :"+ o.GetFrameVelAtUT ;
// Output += "\n :"+ o.GetMeanAnomaly ;
// Output += "\n :"+ o.getObTAtMeanAnomaly ;
// Output += "\n :"+ o.getObtAtUT ;
// Output += "\n :"+ o.getOrbitalSpeedAt ;
// Output += "\n :"+ o.getOrbitalSpeedAtDistance ;
// Output += "\n :"+ o.getOrbitalSpeedAtPos ;
// Output += "\n :"+ o.getOrbitalSpeedAtRelativePos ;
// Output += "\n :"+ o.getOrbitalVelocityAtObT ;
// Output += "\n :"+ o.getOrbitalVelocityAtUT ;
// Output += "\n :"+ o.GetPatchTrajectory ;
// Output += "\n :"+ o.getPositionAtT ;
// Output += "\n :"+ o.getPositionAtUT ;
// Output += "\n :"+ o.getPositionFromEccAnomaly ;
// Output += "\n :"+ o.getPositionFromMeanAnomaly ;
// Output += "\n :"+ o.getPositionFromTrueAnomaly ;
// Output += "\n :"+ o.getRelativePositionAtT ;
// Output += "\n :"+ o.getRelativePositionAtUT ;
// Output += "\n :"+ o.getRelativePositionFromEccAnomaly ;
// Output += "\n :"+ o.getRelativePositionFromMeanAnomaly ;
// Output += "\n :"+ o.getRelativePositionFromTrueAnomaly ;
// Output += "\n :"+ o.GetRotFrameVel ;
// Output += "\n :"+ o.getTrueAnomaly ;
// Output += "\n :"+ o.GetTrueAnomalyOfZupVector ;
// Output += "\n :"+ o.getTruePositionAtUT ;
// Output += "\n :"+ o.GetUTforTrueAnomaly ;
// Output += "\n :"+ o.Init() ;
// Output += "\n :"+ o.RadiusAtTrueAnomaly ;
// Output += "\n :"+ o.solveEccentricAnomaly ;
// Output += "\n :"+ o.TrueAnomalyAtRadius ;
// Output += "\n :"+ o.TrueAnomalyAtT ;
// Output += "\n :"+ o.TrueAnomalyAtUT;
// Output += "\n :"+ o.UpdateFromOrbitAtUT;
// Output += "\n :"+ o.UpdateFromStateVectors;
// Output += "\n :"+ o.UpdateFromUT;
}
catch(Exception ex) {
Debug.Log("Could not orbit functions. Exception:" + ex);
//no catch exception for now.
}
Debug.Log(Output);
Debug.Log("Patch from o.nextPatch");
Print_Orbit_info (o.nextPatch);
Debug.Log("Patch from o.closestEncounterPatch");
Print_Orbit_info (o.closestEncounterPatch);
Output = "";
}