C# Class Procedurality.Utils

Datei anzeigen Open project: N3X15/VoxelSim

Public Methods

Method Description
intToBlue ( int color ) : float
intToGreen ( int color ) : float
intToRed ( int color ) : float
isPowerOf2 ( int num ) : bool
nextPowerOf2 ( int n ) : int
powerOf2Log2 ( int n ) : int

Method Details

intToBlue() public static method

public static intToBlue ( int color ) : float
color int
return float

intToGreen() public static method

public static intToGreen ( int color ) : float
color int
return float

intToRed() public static method

public static intToRed ( int color ) : float
color int
return float

isPowerOf2() public static method

public static isPowerOf2 ( int num ) : bool
num int
return bool

nextPowerOf2() public static method

public static nextPowerOf2 ( int n ) : int
n int
return int

powerOf2Log2() public static method

public static powerOf2Log2 ( int n ) : int
n int
return int