C# 클래스 AForge.Math.Tools

Set of tool functions.
The class contains different utility functions.
파일 보기 프로젝트 열기: atosorigin/Kinect

공개 메소드들

메소드 설명
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