Java Number Min Value min(int idx, int orderFrom, int orderTo)

Here you can find the source of min(int idx, int orderFrom, int orderTo)

Description

Returns the smallest index in order orderTo of healpix pixels contained by the healpix pixel of index idx in order orderFrom.

License

Open Source License

Parameter

Parameter Description
idx a parameter
orderFrom a parameter
orderTo a parameter

Return

the smallest index in order orderTo of healpix pixels contained by the healpix pixel of index idx in order orderFrom.

Declaration

public static final int min(int idx, int orderFrom, int orderTo) 

Method Source Code

//package com.java2s;
// of the GNU General Public License version 3.

public class Main {
    /**/*  www  .  j a  v  a 2 s. co  m*/
     * Returns the smallest index in order <i>orderTo</i> of healpix pixels contained by
     * the healpix pixel of index <i>idx</i> in order <i>orderFrom</i>.
     * @param idx
     * @param orderFrom
     * @param orderTo
     * @return the smallest index in order <i>orderTo</i> of healpix pixels contained by
     * the healpix pixel of index <i>idx</i> in order <i>orderFrom</i>.
     */
    public static final int min(int idx, int orderFrom, int orderTo) {
        if (orderFrom > orderTo)
            throw new IllegalArgumentException("'orderFrom' must be smaller than 'orderTo'!");
        return idx << ((orderTo - orderFrom) << 1);
    }
}

Related

  1. min(int a, int b, int c)
  2. min(int a, int b, int c)
  3. min(int a, int b, int c)
  4. min(int a, int b, int c)
  5. min(int a, int b, int c)
  6. min(int int1, int int2)
  7. min(int num1, int num2, int num3)
  8. min(int number1, int number2)
  9. min(int one, int two, int three)