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
Пример #1
0
        // debugging function
        private void drawTimeControls(Color contentColor)
        {
            // Universal time controls
            GUILayout.BeginHorizontal();
            GUILayout.Label((options.largeUTIncrement?"UT: (10x inc)":"UT:"), GUILayout.Width(100));
            GUI.backgroundColor = Color.green;
            if (!curState.timeParsed)
            {
                GUI.contentColor = Color.red;
            }
            string check = GUILayout.TextField(curState.timeText, GUILayout.Width(100));

            if (!curState.timeText.Equals(check, StringComparison.Ordinal))
            {
                curState.setUT(check);
            }
            GUI.contentColor = contentColor;
            double ut_increment = options.increment * (options.largeUTIncrement ? 10.0 : 1.0);

            GUIParts.drawButton("-", Color.red, delegate() { curState.addUT(ut_increment * -1.0); });
            GUIParts.drawButton("+", Color.green, delegate() { curState.addUT(ut_increment); });
            GUILayout.EndHorizontal();

            // extended time controls
            if (options.showUTControls)
            {
                GUILayout.BeginHorizontal();
                GUIParts.drawButton("Peri", Color.yellow, delegate() { curState.setPeriapsis(); });
                GUIParts.drawButton("DN", Color.magenta, delegate() {
                    Orbit targ = NodeTools.getTargetOrbit();
                    if (targ != null)
                    {
                        curState.setUT(NodeTools.getTargetDNUT(curState.node.patch, targ));
                    }
                    else
                    {
                        curState.setUT(NodeTools.getEquatorialDNUT(curState.node.patch));
                    }
                });
                if (options.largeUTIncrement)
                {
                    GUIParts.drawButton("-Orb", Color.red, delegate() { curState.addUT(-curState.node.patch.period); });
                    GUIParts.drawButton("+Orb", Color.green, delegate() { curState.addUT(curState.node.patch.period); });
                }
                else
                {
                    GUIParts.drawButton("-1K", Color.red, delegate() { curState.addUT(-1000); });
                    GUIParts.drawButton("+1K", Color.green, delegate() { curState.addUT(1000); });
                }
                GUIParts.drawButton("AN", Color.cyan, delegate() {
                    Orbit targ = NodeTools.getTargetOrbit();
                    if (targ != null)
                    {
                        curState.setUT(NodeTools.getTargetANUT(curState.node.patch, targ));
                    }
                    else
                    {
                        curState.setUT(NodeTools.getEquatorialANUT(curState.node.patch));
                    }
                });
                GUIParts.drawButton("Apo", Color.blue, delegate() { curState.setApoapsis(); });
                GUILayout.EndHorizontal();
            }
        }