core
Class MathHelper

java.lang.Object
  extended bycore.MathHelper

public class MathHelper
extends java.lang.Object

MathHelper.java Helper class implementing some common math functions

Author:
Avi TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
MathHelper()
           
 
Method Summary
 float average(java.util.ArrayList args)
          Compute the average of an ArrayList of floats
 double pythag(double x, double y)
          Computer the hypotunose of two doubles
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathHelper

public MathHelper()
Method Detail

average

public float average(java.util.ArrayList args)
Compute the average of an ArrayList of floats

Parameters:
args - ArrayList containing the floats
Returns:
The average of these floats

pythag

public double pythag(double x,
                     double y)
Computer the hypotunose of two doubles

Parameters:
x - double x
y - doulbe y
Returns:
The hypotunose of the two doubles