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


C# Orbit.GetTrueAnomalyOfZupVector方法代码示例

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


在下文中一共展示了Orbit.GetTrueAnomalyOfZupVector方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: getEquatorialDNUT

 /// <summary>
 /// Gets the UT for the equatorial DN.
 /// </summary>
 /// <returns>The equatorial DN UT.</returns>
 /// <param name="o">The Orbit to calculate the UT from.</param>
 public static double getEquatorialDNUT(Orbit o)
 {
     //TODO: Add safeguards for bad UTs, may need to be refactored to NodeManager
     Vector3d DNVector = QuaternionD.AngleAxis(NodeTools.Angle360(o.LAN + 180), Planetarium.Zup.Z) * Planetarium.Zup.X;
     return o.GetUTforTrueAnomaly(o.GetTrueAnomalyOfZupVector(DNVector), 2);
 }
开发者ID:jbengtson,项目名称:ksp-precisenode,代码行数:11,代码来源:NodeTools.cs

示例2: getTargetDNUT

 /// <summary>
 /// Gets the UT for the descending node in reference to the target orbit.
 /// </summary>
 /// <returns>The UT for the descending node in reference to the target orbit.</returns>
 /// <param name="a">The orbit to find the UT on.</param>
 /// <param name="b">The target orbit.</param>
 public static double getTargetDNUT(Orbit a, Orbit b)
 {
     //TODO: Add safeguards for bad UTs, may need to be refactored to NodeManager
     Vector3d DNVector = Vector3d.Cross(a.GetOrbitNormal(), b.h).normalized;
     return a.GetUTforTrueAnomaly(a.GetTrueAnomalyOfZupVector(DNVector), 2);
 }
开发者ID:jbengtson,项目名称:ksp-precisenode,代码行数:12,代码来源:NodeTools.cs

示例3: 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);
 }
开发者ID:jbengtson,项目名称:ksp-precisenode,代码行数:10,代码来源:NodeTools.cs


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