Here you can find the source of max(int idx, int orderFrom, int orderTo)
Parameter | Description |
---|---|
idx | a parameter |
orderFrom | a parameter |
orderTo | a parameter |
public static final int max(int idx, int orderFrom, int orderTo)
//package com.java2s; // of the GNU General Public License version 3. public class Main { /**// w ww. ja va2 s . co m * Returns the greatest 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 greatest 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 max(int idx, int orderFrom, int orderTo) { if (orderFrom > orderTo) throw new IllegalArgumentException("'orderFrom' must be smaller than 'orderTo'!"); return ((++idx) << ((orderTo - orderFrom) << 1)) - 1; } }