ProGAL.math
Class Functions

java.lang.Object
  extended by ProGAL.math.Functions

public class Functions
extends java.lang.Object


Constructor Summary
Functions()
           
 
Method Summary
static int roundUpToPowerOf2(int n)
          returns the smallest power of 2 above n, see http://en.wikipedia.org/wiki/Power_of_two
static double toDeg(double alpha)
           
static double toRad(double alpha)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functions

public Functions()
Method Detail

toDeg

public static double toDeg(double alpha)

toRad

public static double toRad(double alpha)

roundUpToPowerOf2

public static int roundUpToPowerOf2(int n)
returns the smallest power of 2 above n, see http://en.wikipedia.org/wiki/Power_of_two