public CoordsString ToDMS()
        {
            CoordsString StringOut = new CoordsString();

            double ld = Utils.quad(this.l.ToDeg());
            double bd = (this.b.ToDeg());

            StringOut.l = Utils.dd(ld) + (Char)176 + " " + Utils.dm(ld) + (Char)39 + " " + Utils.ds(ld) + (Char)34;
            StringOut.b = Utils.dd(bd) + (Char)176 + " " + Utils.dm(bd) + (Char)39 + " " + Utils.ds(bd) + (Char)34;

            return(StringOut);
        }
        public CoordsString ToDMS()
        {
            CoordsString StringOut = new CoordsString();

            double RAH  = Utils.quad(this.ra.ToDeg()) / 15;
            double DecD = (this.dec.ToDeg());

            StringOut.ra  = Utils.hh(RAH) + "h " + Utils.dm(RAH) + "m " + Utils.ds(RAH) + "s";
            StringOut.dec = Utils.dd(DecD) + (Char)176 + " " + Utils.dm(DecD) + (Char)39 + " " + Utils.ds(DecD) + (Char)34;

            return(StringOut);
        }
示例#3
0
        public static CoordsString EquatorialToDMS(EquatorialCoords coords)
        {
            CoordsString StringOut = new CoordsString();

            double RAH  = rad2deg(coords.ra) / 15;
            double DecD = rad2deg(coords.dec);

            StringOut.ra  = hh(RAH) + "h " + dm(RAH) + "m " + ds(RAH) + "s";
            StringOut.dec = dd(DecD) + (Char)176 + " " + dm(DecD) + (Char)39 + " " + ds(DecD) + (Char)34;

            return(StringOut);
        }