|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.resources.XMath
Simple mathematical functions. Some of those function will
be removed if JavaSoft provide a standard implementation
or fix some issues in Bug Parade:
Field Summary | |
static double |
LN10
Natural logarithm of 10. |
private static double[] |
POW10
Table of some integer powers of 10. |
Constructor Summary | |
private |
XMath()
Do not allow instantiation of this class. |
Method Summary | |
static double |
hypot(double x,
double y)
Compute the hypothenuse ( sqrt(x²+y²) ). |
static double |
log10(double x)
Compute the logarithm in base 10. |
static double |
pow10(double x)
Compute 10 power x. |
static double |
pow10(int x)
Compute 10 power x. |
static byte |
sgn(byte x)
Returns the sign of x. |
static int |
sgn(double x)
Returns the sign of x. |
static int |
sgn(float x)
Returns the sign of x. |
static int |
sgn(int x)
Returns the sign of x. |
static int |
sgn(long x)
Returns the sign of x. |
static short |
sgn(short x)
Returns the sign of x. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double LN10
private static final double[] POW10
pow10(int)
.
Constructor Detail |
private XMath()
Method Detail |
public static double hypot(double x, double y)
sqrt(x²+y²)
).
public static double log10(double x)
public static double pow10(double x)
public static double pow10(int x)
public static int sgn(double x)
NaN
and
+1 if x is positive.
public static int sgn(float x)
NaN
and
+1 if x is positive.
public static int sgn(long x)
public static int sgn(int x)
public static short sgn(short x)
public static byte sgn(byte x)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |