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


C# Orbit.GetHashCode方法代码示例

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


在下文中一共展示了Orbit.GetHashCode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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() ;
//.........这里部分代码省略.........
开发者ID:ve2dmn,项目名称:AsteroidScanner,代码行数:101,代码来源:MyScanner.cs


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