示例#1
0
        private string FormatPos2(PositionId align, PositionId gotoId)
        {
            var alignPos = _state.GetPosition(align);
            var gotoPos  = _state.GetPosition(gotoId);

            if (alignPos == null || gotoPos == null)
            {
                return("");
            }

            var offset = alignPos - gotoPos;

            return(string.Format("RA (deg) = {0}, Dec = {1}", Utils.FormatDegrees(offset.RA * 15), Utils.FormatDegrees(offset.Declination)));
        }