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


C# Vessel.Pitch方法代码示例

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


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

示例1: MaxAngle

 private float MaxAngle(Vessel vessel)
 {
     float angle = 100000 / (float)vesselState.dynamicPressure;
     float vertical = 90 + vessel.Pitch();
     angle = Mathf.Clamp(angle, 0, 35);
     if (angle > vertical)
         return vertical;
     return angle;
 }
开发者ID:johnfink8,项目名称:GravityTurn,代码行数:9,代码来源:GravityTurner.cs

示例2: PreflightInfo

 string PreflightInfo(Vessel vessel)
 {
     string info;
     info = string.Format("Drag area {0:0.00}", vesselState.areaDrag);
     info += string.Format("\nDrag coefficient {0:0.00}", vesselState.dragCoef);
     info += string.Format("\nDrag coefficient fwd {0:0.00}", vessel.DragCubeCoefForward());
     info += string.Format("\nMass {0:0.00}", vesselState.mass);
     DragRatio.value = vesselState.areaDrag/vesselState.mass;
     info += string.Format("\narea/mass {0:0.00}", DragRatio.value);
     info += string.Format("\nGuess TWR {0:0.00}", TWRWeightedAverage(2 * vessel.mainBody.GeeASL * DestinationHeight,vessel));
     info += string.Format("\nPitch {0:0.00}", vessel.Pitch());
     info += string.Format("\nTimeToDesiredAP {0:0.00}", Calculations.TimeToReachAP(vesselState, vesselState.speedVertical, HoldAPTime));
     return info;
 }
开发者ID:johnfink8,项目名称:GravityTurn,代码行数:14,代码来源:GravityTurner.cs

示例3: MaxAngle

 public static float MaxAngle(Vessel vessel, GravityTurner turner)
 {
     float angle = 100000 / (float)turner.vesselState.dynamicPressure;
     float vertical = 90 + vessel.Pitch();
     angle = Mathf.Clamp(angle, 0, 35);
     if (angle > vertical)
         return vertical;
     return angle;
 }
开发者ID:johnfink8,项目名称:GravityTurn,代码行数:9,代码来源:Calculations.cs


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