C# Class QuickFont.JMath

Mostra file Open project: Pireax/neovim.cs Class Usage Examples

Public Methods

Method Description
Cos ( float ang ) : float
FastProject ( float px, float py, double modelView, double projection, int view, float &scrx, float &scry ) : void
FastProject2 ( float px, float py, float &scrx, float &scry ) : void
FastProjectSetConsts ( double modelView, double projection, int view ) : void
Sin ( float ang ) : float
StandardDeviation ( double data ) : double
distSquared ( float x1, float y1, float x2, float y2 ) : float
pot ( int x ) : int

Returns the power of 2 that is closest to x, but not smaller than x.

Private Methods

Method Description
Average ( double data ) : double

Method Details

Cos() public static method

public static Cos ( float ang ) : float
ang float
return float

FastProject() public static method

public static FastProject ( float px, float py, double modelView, double projection, int view, float &scrx, float &scry ) : void
px float
py float
modelView double
projection double
view int
scrx float
scry float
return void

FastProject2() public static method

public static FastProject2 ( float px, float py, float &scrx, float &scry ) : void
px float
py float
scrx float
scry float
return void

FastProjectSetConsts() public static method

public static FastProjectSetConsts ( double modelView, double projection, int view ) : void
modelView double
projection double
view int
return void

Sin() public static method

public static Sin ( float ang ) : float
ang float
return float

StandardDeviation() public static method

public static StandardDeviation ( double data ) : double
data double
return double

distSquared() public static method

public static distSquared ( float x1, float y1, float x2, float y2 ) : float
x1 float
y1 float
x2 float
y2 float
return float

pot() public static method

Returns the power of 2 that is closest to x, but not smaller than x.
public static pot ( int x ) : int
x int
return int