|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthealpix.essentials.HealpixUtils
public class HealpixUtils
Collection of utility functions.
| Constructor Summary | |
|---|---|
HealpixUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
approx(double a,
double b,
double epsilon)
|
static boolean |
approx(float a,
float b,
float epsilon)
|
static void |
check(boolean cond,
String errtxt)
Evaluates cond; if it is false, throws an Exception containing errtxt. |
static double |
cosdist_zphi(double z1,
double phi1,
double z2,
double phi2)
Computes the cosine of the angular distance between two z, phi positions on the unit sphere. |
static double |
cosdist_zphi(Zphi zp1,
Zphi zp2)
Computes the cosine of the angular distance between two z, phi positions on the unit sphere. |
static double |
fmodulo(double v1,
double v2)
Returns the remainder of the division v1/v2. |
static int |
ilog2(long arg)
Integer base 2 logarithm. |
static int |
isqrt(long arg)
Integer square root. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HealpixUtils()
| Method Detail |
|---|
public static void check(boolean cond,
String errtxt)
throws Exception
Exceptionpublic static int ilog2(long arg)
arg -
n that fulfills 2^n<=arg.public static int isqrt(long arg)
arg -
n which fulfills n^2<=arg<(n+1)^2
public static double cosdist_zphi(double z1,
double phi1,
double z2,
double phi2)
public static double cosdist_zphi(Zphi zp1,
Zphi zp2)
public static double fmodulo(double v1,
double v2)
v1/v2.
The result is non-negative.
v1 - dividend; can be positive or negativev2 - divisor; must be positive
v2
public static boolean approx(float a,
float b,
float epsilon)
public static boolean approx(double a,
double b,
double epsilon)
|
"Built from revision exported" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||