C# 클래스 Patcher.Rules.Compiled.Helpers.Math

Provides useful mathematical functions.
파일 보기 프로젝트 열기: unforbidable/patcher

공개 메소드들

메소드 설명
Ceiling ( float a ) : int

Returns the smallest integer value which is greater or equal to the specified floating point number.

Floor ( float a ) : int

Returns the largest integer value which is lesser or equal to the specified floating point number.

Max ( float a, float b ) : float

Retrieves the greater of the specified floating point numbers.

Max ( int a, int b ) : int

Retrieves the greater of the specified integers.

Max ( short a, short b ) : short

Retrieves the greater of the specified short integers.

Min ( float a, float b ) : float

Retrieves the lesser of the specified floating point numbers.

Min ( int a, int b ) : int

Retrieves the lesser of the specified integers.

Min ( short a, short b ) : short

Retrieves the lesser of the specified short integers.

Round ( float a ) : int

Rounds the specified floating point value to the nearest integer value.

메소드 상세

Ceiling() 공개 정적인 메소드

Returns the smallest integer value which is greater or equal to the specified floating point number.
public static Ceiling ( float a ) : int
a float Floating point value to ceil.
리턴 int

Floor() 공개 정적인 메소드

Returns the largest integer value which is lesser or equal to the specified floating point number.
public static Floor ( float a ) : int
a float Floating point value to floor.
리턴 int

Max() 공개 정적인 메소드

Retrieves the greater of the specified floating point numbers.
public static Max ( float a, float b ) : float
a float First floating point number to compare.
b float Second floating point number to compare.
리턴 float

Max() 공개 정적인 메소드

Retrieves the greater of the specified integers.
public static Max ( int a, int b ) : int
a int First integer to compare.
b int Second integer to compare.
리턴 int

Max() 공개 정적인 메소드

Retrieves the greater of the specified short integers.
public static Max ( short a, short b ) : short
a short First short integer to compare.
b short Second short integer to compare.
리턴 short

Min() 공개 정적인 메소드

Retrieves the lesser of the specified floating point numbers.
public static Min ( float a, float b ) : float
a float First floating point number to compare.
b float Second floating point number to compare.
리턴 float

Min() 공개 정적인 메소드

Retrieves the lesser of the specified integers.
public static Min ( int a, int b ) : int
a int First integer to compare.
b int Second integer to compare.
리턴 int

Min() 공개 정적인 메소드

Retrieves the lesser of the specified short integers.
public static Min ( short a, short b ) : short
a short First short integer to compare.
b short Second short integer to compare.
리턴 short

Round() 공개 정적인 메소드

Rounds the specified floating point value to the nearest integer value.
public static Round ( float a ) : int
a float Floating point value to round.
리턴 int