com.vividsolutions.jump.util
Class MathUtil

java.lang.Object
  extended by com.vividsolutions.jump.util.MathUtil

public class MathUtil
extends java.lang.Object

Additional math utilities.

See Also:
Math

Constructor Summary
MathUtil()
           
 
Method Summary
static double avg(double a, double b)
          Returns the average of two doubles
static double base10Log(double x)
           
static int mostSignificantDigit(double x)
           
static double orderOfMagnitude(double x)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathUtil

public MathUtil()
Method Detail

orderOfMagnitude

public static double orderOfMagnitude(double x)

base10Log

public static double base10Log(double x)

mostSignificantDigit

public static int mostSignificantDigit(double x)

avg

public static double avg(double a,
                         double b)
Returns the average of two doubles

Parameters:
a - one of the doubles to average
b - the other double to average
Returns:
the average of two doubles