|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjme.math.MathUtils
Math Utils
provides a variety of useful math functions. These
math function typically don't have a common class to reside, or provide a
quicker version than available in common libraries.
Constructor Summary | |
MathUtils()
|
Method Summary | |
static float |
hypot(float a,
float b)
hypot defines a Euclidean distance function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MathUtils()
Method Detail |
public static float hypot(float a, float b)
hypot
defines a Euclidean distance function. Using the
function a^2 + b^2 = c^2 to find the hypotenuse of a right triangle,
the length of the hypotenuse is returned.
a
- the first point value.b
- the second point value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |