本文整理汇总了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);
}
示例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);
}
示例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);
}