Пример #1
0
        public static Zphi Create(double z_, double phi_)
        {
            Zphi temp = new Zphi();

            temp.z   = z_;
            temp.phi = phi_;
            return(temp);
        }
Пример #2
0
        //  public static Hploc Create(Zphi zphi)
        //  {
        //      Hploc temp = new Hploc();
        //      temp.z = zphi.z;
        //      temp.phi = zphi.phi;
        //      temp.have_sth = false;
        //      return temp;
        //  }
        //  public static Hploc Create(Pointing ptg)
        //  {
        //      Hploc temp = new Hploc();
        //      HealpixUtils.check((ptg.theta >= 0d) && (ptg.theta <= Math.PI),
        //"invalid theta value");
        //      temp.z = FastMath.cos(ptg.theta);
        //      temp.phi = ptg.phi;
        //      if (Math.Abs(temp.z) > 0.99)
        //      {
        //          temp.sth = FastMath.sin(ptg.theta);
        //          temp.have_sth = true;
        //      }
        //      return temp;
        //  }

        public Zphi toZphi()
        {
            return(Zphi.Create(z, phi));
        }