jme.math
Class MathUtils

java.lang.Object
  extended byjme.math.MathUtils

public class MathUtils
extends java.lang.Object

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.

Version:
$Id: MathUtils.java,v 1.5 2003/08/22 02:26:48 mojomonkey Exp $
Author:
Mark Powell

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

MathUtils

public MathUtils()
Method Detail

hypot

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.

Parameters:
a - the first point value.
b - the second point value.
Returns:
the length of c.