当前位置: 首页>>代码示例>>C#>>正文


C# Orbit.GetWorldSpaceVel方法代码示例

本文整理汇总了C#中Orbit.GetWorldSpaceVel方法的典型用法代码示例。如果您正苦于以下问题:C# Orbit.GetWorldSpaceVel方法的具体用法?C# Orbit.GetWorldSpaceVel怎么用?C# Orbit.GetWorldSpaceVel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Orbit的用法示例。


在下文中一共展示了Orbit.GetWorldSpaceVel方法的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 = "";
        }
开发者ID:ve2dmn,项目名称:AsteroidScanner,代码行数:101,代码来源:MyScanner.cs


注:本文中的Orbit.GetWorldSpaceVel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。