Here you can find the source of min(int idx, int orderFrom, int orderTo)
Parameter | Description |
---|---|
idx | a parameter |
orderFrom | a parameter |
orderTo | a parameter |
public static final int min(int idx, int orderFrom, int orderTo)
//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); } }