org.gillius.Util
Class MathUtils

java.lang.Object
  extended by org.gillius.Util.MathUtils

public class MathUtils
extends java.lang.Object

MathUtils provides some math utility methods.

Author:
Jason Winnebeck

Constructor Summary
MathUtils()
           
 
Method Summary
static int divideRoundUp(int a, int b)
          For positive integers a and b, returns a divided by b, rounding up instead of down.
 
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

divideRoundUp

public static int divideRoundUp(int a,
                                int b)
For positive integers a and b, returns a divided by b, rounding up instead of down.



Copyright © 2008-2010 Jason Winnebeck. All Rights Reserved.