C# 클래스 RegexKSP.NodeTools

파일 보기 프로젝트 열기: jbengtson/ksp-precisenode 1 사용 예제들

공개 메소드들

메소드 설명
Angle360 ( double d ) : double

Adjusts the specified angle to between 0 and 360 degrees.

CreateNodeGizmo ( ManeuverNode node ) : void

Creates a new Meneuver Node Gizmo if needed

changeConicsMode ( int mode ) : void

Sets the conics render mode

convertUTtoHumanDuration ( double UT ) : String

Converts the UT to human-readable duration.

convertUTtoHumanTime ( double UT ) : String

Converts the UT to human-readable Kerbal local time.

fetchKey ( ) : KeyCode

Function to figure out which KeyCode was pressed.

findNextEncounter ( ManeuverNode node ) : Orbit
formatMeters ( double d ) : string

Formats the given double into meters.

getEjectionAngle ( Orbit o, double nodeUT ) : double

Gets the ejection angle of the current maneuver node.

getEquatorialANUT ( Orbit o ) : double

Gets the UT for the equatorial AN.

getEquatorialDNUT ( Orbit o ) : double

Gets the UT for the equatorial DN.

getSolver ( ) : PatchedConicSolver

Convenience function.

getTargetANUT ( Orbit a, Orbit b ) : double

Gets the UT for the ascending node in reference to the target orbit.

getTargetDNUT ( Orbit a, Orbit b ) : double

Gets the UT for the descending node in reference to the target orbit.

getTargetOrbit ( ) : Orbit

Returns the orbit of the currently targeted item or null if there is none.

mergeNodeDown ( ManeuverNode n ) : void

Merges the given node into the next lowest node (n's index - 1). If there is no lower node, does nothing.

비공개 메소드들

메소드 설명
difference ( UnityEngine.Vector3d initial, UnityEngine.Vector3d final ) : UnityEngine.Vector3d
findPreviousOrbit ( ManeuverNode n ) : Orbit
mergeBurnVectors ( double UT, ManeuverNode first, Orbit projOrbit ) : UnityEngine.Vector3d

메소드 상세

Angle360() 공개 정적인 메소드

Adjusts the specified angle to between 0 and 360 degrees.
public static Angle360 ( double d ) : double
d double The specified angle to restrict.
리턴 double

CreateNodeGizmo() 공개 정적인 메소드

Creates a new Meneuver Node Gizmo if needed
public static CreateNodeGizmo ( ManeuverNode node ) : void
node ManeuverNode
리턴 void

changeConicsMode() 공개 정적인 메소드

Sets the conics render mode
public static changeConicsMode ( int mode ) : void
mode int The conics render mode to use, one of 0, 1, 2, 3, or 4. Arguments outside those will be set to 3.
리턴 void

convertUTtoHumanDuration() 공개 정적인 메소드

Converts the UT to human-readable duration.
public static convertUTtoHumanDuration ( double UT ) : String
UT double Kerbal Spece Program Universal Time.
리턴 String

convertUTtoHumanTime() 공개 정적인 메소드

Converts the UT to human-readable Kerbal local time.
public static convertUTtoHumanTime ( double UT ) : String
UT double Kerbal Spece Program Universal Time.
리턴 String

fetchKey() 공개 정적인 메소드

Function to figure out which KeyCode was pressed.
public static fetchKey ( ) : KeyCode
리턴 KeyCode

findNextEncounter() 공개 정적인 메소드

public static findNextEncounter ( ManeuverNode node ) : Orbit
node ManeuverNode
리턴 Orbit

formatMeters() 공개 정적인 메소드

Formats the given double into meters.
public static formatMeters ( double d ) : string
d double The double to format
리턴 string

getEjectionAngle() 공개 정적인 메소드

Gets the ejection angle of the current maneuver node.
public static getEjectionAngle ( Orbit o, double nodeUT ) : double
o Orbit
nodeUT double Kerbal Spece Program Universal Time.
리턴 double

getEquatorialANUT() 공개 정적인 메소드

Gets the UT for the equatorial AN.
public static getEquatorialANUT ( Orbit o ) : double
o Orbit The Orbit to calculate the UT from.
리턴 double

getEquatorialDNUT() 공개 정적인 메소드

Gets the UT for the equatorial DN.
public static getEquatorialDNUT ( Orbit o ) : double
o Orbit The Orbit to calculate the UT from.
리턴 double

getSolver() 공개 정적인 메소드

Convenience function.
public static getSolver ( ) : PatchedConicSolver
리턴 PatchedConicSolver

getTargetANUT() 공개 정적인 메소드

Gets the UT for the ascending node in reference to the target orbit.
public static getTargetANUT ( Orbit a, Orbit b ) : double
a Orbit The orbit to find the UT on.
b Orbit The target orbit.
리턴 double

getTargetDNUT() 공개 정적인 메소드

Gets the UT for the descending node in reference to the target orbit.
public static getTargetDNUT ( Orbit a, Orbit b ) : double
a Orbit The orbit to find the UT on.
b Orbit The target orbit.
리턴 double

getTargetOrbit() 공개 정적인 메소드

Returns the orbit of the currently targeted item or null if there is none.
public static getTargetOrbit ( ) : Orbit
리턴 Orbit

mergeNodeDown() 공개 정적인 메소드

Merges the given node into the next lowest node (n's index - 1). If there is no lower node, does nothing.
public static mergeNodeDown ( ManeuverNode n ) : void
n ManeuverNode The ManeuverNode to merge down.
리턴 void