C# 클래스 GameMath.MathF

파일 보기 프로젝트 열기: npruehs/game-math 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( float x, float y ) : bool

Checks whether the two passed numbers are equal, with respect to possible loss of precision caused by rounding values.

Exp ( float x ) : float

Raises e to the specified power.

Lerp ( float x, float y, float l ) : float

Linearly interpolates between the two passed values.

Log ( float x ) : float

Returns the natural (base e) logarithm of the specified number.

Log10 ( float x ) : float

Returns the base 10 logarithm of the specified number.

Pow ( float x, float y ) : float

Returns the passed number raised to the specified power.

Sqrt ( float x ) : float

Returns the square root of the specified number.

메소드 상세

Equals() 공개 정적인 메소드

Checks whether the two passed numbers are equal, with respect to possible loss of precision caused by rounding values.
public static Equals ( float x, float y ) : bool
x float /// First number to compare. ///
y float /// Second number to compare. ///
리턴 bool

Exp() 공개 정적인 메소드

Raises e to the specified power.
public static Exp ( float x ) : float
x float Power to raise e to.
리턴 float

Lerp() 공개 정적인 메소드

Linearly interpolates between the two passed values.
public static Lerp ( float x, float y, float l ) : float
x float /// First value to interpolate. ///
y float /// Second value to interpolate. ///
l float /// Interpolation parameter. 0 returns , 1 returns . ///
리턴 float

Log() 공개 정적인 메소드

Returns the natural (base e) logarithm of the specified number.
public static Log ( float x ) : float
x float Number of get the natural logarithm of.
리턴 float

Log10() 공개 정적인 메소드

Returns the base 10 logarithm of the specified number.
public static Log10 ( float x ) : float
x float Number to get the base 10 logarithm of.
리턴 float

Pow() 공개 정적인 메소드

Returns the passed number raised to the specified power.
public static Pow ( float x, float y ) : float
x float Number to compute the power of.
y float Exponent.
리턴 float

Sqrt() 공개 정적인 메소드

Returns the square root of the specified number.
public static Sqrt ( float x ) : float
x float /// Number to get the square root of. ///
리턴 float