GetCorrectedDirection() public static method

public static GetCorrectedDirection ( ) : Vector3
return Vector3
Ejemplo n.º 1
0
 public static Tuple <float, float, float> CorrectedDirection()
 {
     if (FlightGlobals.ActiveVessel != null && Trajectory.Target.Body != null)
     {
         return(new Tuple <float, float, float>(NavBallOverlay.GetCorrectedDirection().x, NavBallOverlay.GetCorrectedDirection().y, NavBallOverlay.GetCorrectedDirection().z));
     }
     return(new Tuple <float, float, float>(0, 0, 0));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the corrected direction or Null if no active vessel or set target.
 /// </summary>
 public static Vector3?CorrectedDirection()
 {
     if (FlightGlobals.ActiveVessel != null && Trajectory.Target.Body != null)
     {
         return(NavBallOverlay.GetCorrectedDirection());
     }
     return(null);
 }
Ejemplo n.º 3
0
 public static Vector3 correctedDirection()
 {
     return(NavBallOverlay.GetCorrectedDirection());
 }