C# Класс AForge.Math.Tools

Set of tool functions.
The class contains different utility functions.
Показать файл Открыть проект

Открытые методы

Метод Описание
IsPowerOf2 ( int x ) : bool

Checks if the specified integer is power of 2.

Log2 ( int x ) : int

Get base of binary logarithm.

Pow2 ( int power ) : int

Calculates power of 2.

Описание методов

IsPowerOf2() публичный статический Метод

Checks if the specified integer is power of 2.
public static IsPowerOf2 ( int x ) : bool
x int Integer number to check.
Результат bool

Log2() публичный статический Метод

Get base of binary logarithm.
public static Log2 ( int x ) : int
x int Source integer number.
Результат int

Pow2() публичный статический Метод

Calculates power of 2.
public static Pow2 ( int power ) : int
power int Power to raise in.
Результат int