The Robot Application Programming Interface Delegate Project
RAPID Logo

MathUtil Class Reference

List of all members.

Static Public Member Functions

static int nextPowerOfTwo (int value)
 return the next largest number which is a power of two.
static int lastPowerOfTwo (int value)
 return the next smallest number which is a power of two.
static double log2 (double d)

Static Package Attributes

static final double base2 = 1.0 / Math.log(2.0)

Member Function Documentation

static int lastPowerOfTwo ( int  value) [static]

If number is a power of two, the same number will be returned.

Parameters:
value
Returns:

Here is the call graph for this function:

static double log2 ( double  d) [static]
static int nextPowerOfTwo ( int  value) [static]

If number is a power of two, the same number will be returned.

Parameters:
value
Returns:

Here is the call graph for this function:


Member Data Documentation

final double base2 = 1.0 / Math.log(2.0) [static, package]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines