Unplugged Viz
High-performance scientific visualization isn't just for the workstation anymore
Durwella.Unplugged.Viz.VisMath Class Reference

Some helper mathematical functions useful for visualization. More...

Static Public Member Functions

static bool IsPowerOfTwo (int number)
 Checks whether the number is a power of two. More...
 
static int NextPowerOfTwo (int v)
 Retrieve the next power of two greater than or equal to v. More...
 

Detailed Description

Some helper mathematical functions useful for visualization.

Member Function Documentation

static bool Durwella.Unplugged.Viz.VisMath.IsPowerOfTwo ( int  number)
static

Checks whether the number is a power of two.

Returns
true, if number is a power of two, false otherwise.
Parameters
numberThe number to check.
static int Durwella.Unplugged.Viz.VisMath.NextPowerOfTwo ( int  v)
static

Retrieve the next power of two greater than or equal to v.

Returns
The next power of two.
Parameters
vThe number for which the next power of two should be retrieved.

The documentation for this class was generated from the following file: