C# 클래스 Nexus.MathUtility

파일 보기 프로젝트 열기: tgjones/nexus

공개 메소드들

메소드 설명
Acos ( float radians ) : float
Asin ( float sin ) : float
Atan2 ( float y, float x ) : float
Ceiling ( float value ) : int
Clamp ( byte value, byte min, byte max ) : byte

Clamps a value to an interval.

Clamp ( float value, float min, float max ) : float

Clamps a value to an interval.

Clamp ( int value, int min, int max ) : int

Clamps a value to an interval.

Cos ( float radians ) : float
Exp ( float value ) : float
Floor ( float value ) : int
IsZero ( float value ) : bool
Lerp ( byte value1, byte value2, float amount ) : byte

Interpolates linearly between the supplied values.

Lerp ( float value1, float value2, float amount ) : float

Interpolates linearly between the supplied values.

Lerp ( float value1, float value2, float startAmount, float endAmount, float amount ) : float
Lerp ( int value1, int value2, float amount ) : int

Interpolates linearly between the supplied values.

Log2 ( float d ) : float
Mod ( double a, double b ) : double

Returns a mod b. This differs from the % operator with respect to negative numbers.

Mod ( int a, int b ) : int

Returns a mod b. This differs from the % operator with respect to negative numbers.

PerspectiveInterpolate ( float value1, float value2, float w1, float w2, float amountRangeStart, float amountRangeEnd, float amount ) : float
Pow ( float x, float y ) : float
Quadratic ( float A, float B, float C, float &t0, float &t1 ) : bool
Round ( float value ) : int
Saturate ( float value ) : float
Sin ( float radians ) : float
SmoothStep ( float a, float b, float x ) : float

A smoothed step function. A cubic function is used to smooth the step between two thresholds.

Sqrt ( float value ) : float
Swap ( float &v1, float &v2 ) : void
Tan ( float radians ) : float
ToDegrees ( float radians ) : float
ToRadians ( float degrees ) : float

메소드 상세

Acos() 공개 정적인 메소드

public static Acos ( float radians ) : float
radians float
리턴 float

Asin() 공개 정적인 메소드

public static Asin ( float sin ) : float
sin float
리턴 float

Atan2() 공개 정적인 메소드

public static Atan2 ( float y, float x ) : float
y float
x float
리턴 float

Ceiling() 공개 정적인 메소드

public static Ceiling ( float value ) : int
value float
리턴 int

Clamp() 공개 정적인 메소드

Clamps a value to an interval.
public static Clamp ( byte value, byte min, byte max ) : byte
value byte The input parameter.
min byte The lower clamp threshold.
max byte The upper clamp threshold.
리턴 byte

Clamp() 공개 정적인 메소드

Clamps a value to an interval.
public static Clamp ( float value, float min, float max ) : float
value float The input parameter.
min float The lower clamp threshold.
max float The upper clamp threshold.
리턴 float

Clamp() 공개 정적인 메소드

Clamps a value to an interval.
public static Clamp ( int value, int min, int max ) : int
value int The input parameter.
min int The lower clamp threshold.
max int The upper clamp threshold.
리턴 int

Cos() 공개 정적인 메소드

public static Cos ( float radians ) : float
radians float
리턴 float

Exp() 공개 정적인 메소드

public static Exp ( float value ) : float
value float
리턴 float

Floor() 공개 정적인 메소드

public static Floor ( float value ) : int
value float
리턴 int

IsZero() 공개 정적인 메소드

public static IsZero ( float value ) : bool
value float
리턴 bool

Lerp() 공개 정적인 메소드

Interpolates linearly between the supplied values.
public static Lerp ( byte value1, byte value2, float amount ) : byte
value1 byte The lower interpolation bound.
value2 byte The upper interpolation bound.
amount float The interpolation parameter.
리턴 byte

Lerp() 공개 정적인 메소드

Interpolates linearly between the supplied values.
public static Lerp ( float value1, float value2, float amount ) : float
value1 float The lower interpolation bound.
value2 float The upper interpolation bound.
amount float The interpolation parameter.
리턴 float

Lerp() 공개 정적인 메소드

public static Lerp ( float value1, float value2, float startAmount, float endAmount, float amount ) : float
value1 float
value2 float
startAmount float
endAmount float
amount float
리턴 float

Lerp() 공개 정적인 메소드

Interpolates linearly between the supplied values.
public static Lerp ( int value1, int value2, float amount ) : int
value1 int The lower interpolation bound.
value2 int The upper interpolation bound.
amount float The interpolation parameter.
리턴 int

Log2() 공개 정적인 메소드

public static Log2 ( float d ) : float
d float
리턴 float

Mod() 공개 정적인 메소드

Returns a mod b. This differs from the % operator with respect to negative numbers.
public static Mod ( double a, double b ) : double
a double The dividend.
b double The divisor.
리턴 double

Mod() 공개 정적인 메소드

Returns a mod b. This differs from the % operator with respect to negative numbers.
public static Mod ( int a, int b ) : int
a int The dividend.
b int The divisor.
리턴 int

PerspectiveInterpolate() 공개 정적인 메소드

public static PerspectiveInterpolate ( float value1, float value2, float w1, float w2, float amountRangeStart, float amountRangeEnd, float amount ) : float
value1 float
value2 float
w1 float
w2 float
amountRangeStart float
amountRangeEnd float
amount float
리턴 float

Pow() 공개 정적인 메소드

public static Pow ( float x, float y ) : float
x float
y float
리턴 float

Quadratic() 공개 정적인 메소드

public static Quadratic ( float A, float B, float C, float &t0, float &t1 ) : bool
A float
B float
C float
t0 float
t1 float
리턴 bool

Round() 공개 정적인 메소드

public static Round ( float value ) : int
value float
리턴 int

Saturate() 공개 정적인 메소드

public static Saturate ( float value ) : float
value float
리턴 float

Sin() 공개 정적인 메소드

public static Sin ( float radians ) : float
radians float
리턴 float

SmoothStep() 공개 정적인 메소드

A smoothed step function. A cubic function is used to smooth the step between two thresholds.
public static SmoothStep ( float a, float b, float x ) : float
a float The lower threshold position.
b float The upper threshold position.
x float The input parameter.
리턴 float

Sqrt() 공개 정적인 메소드

public static Sqrt ( float value ) : float
value float
리턴 float

Swap() 공개 정적인 메소드

public static Swap ( float &v1, float &v2 ) : void
v1 float
v2 float
리턴 void

Tan() 공개 정적인 메소드

public static Tan ( float radians ) : float
radians float
리턴 float

ToDegrees() 공개 정적인 메소드

public static ToDegrees ( float radians ) : float
radians float
리턴 float

ToRadians() 공개 정적인 메소드

public static ToRadians ( float degrees ) : float
degrees float
리턴 float