Some helper mathematical functions useful for visualization.
More...
Some helper mathematical functions useful for visualization.
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
-
number | The 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
-
v | The number for which the next power of two should be retrieved. |
The documentation for this class was generated from the following file: