C# 클래스 OpenMetaverse.Utils

파일 보기 프로젝트 열기: 3di/3di-viewer-rei-libs

공개 프로퍼티들

프로퍼티 타입 설명
EnUsCulture System.Globalization.CultureInfo
Epoch System.DateTime

공개 메소드들

메소드 설명
Clamp ( double value, double min, double max ) : double

Clamp a given value between a range

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

Clamp a given value between a range

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

Clamp a given value between a range

Distance ( float value1, float value2 ) : float

Get the distance between two floating-point values

GetRunningPlatform ( ) : System.Platform

Get the current running platform

GetRunningRuntime ( ) : Runtime

Get the current running runtime

Hermite ( double value1, double tangent1, double value2, double tangent2, double amount ) : double
Hermite ( float value1, float tangent1, float value2, float tangent2, float amount ) : float
IsFinite ( double value ) : bool

Test if a double precision float is a finite number

IsFinite ( float value ) : bool

Test if a single precision float is a finite number

Lerp ( double value1, double value2, double amount ) : double
Lerp ( float value1, float value2, float amount ) : float
MD5 ( byte data ) : byte[]

Compute the MD5 hash for a byte array

MD5 ( string password ) : string

Calculate the MD5 hash of a given string

Round ( float val ) : int

Round a floating-point value to the nearest integer

SHA1 ( byte data ) : byte[]

Compute the SHA-1 hash for a byte array

SmoothStep ( double value1, double value2, double amount ) : double
SmoothStep ( float value1, float value2, float amount ) : float
ToDegrees ( float radians ) : float
ToRadians ( float degrees ) : float

메소드 상세

Clamp() 공개 정적인 메소드

Clamp a given value between a range
public static Clamp ( double value, double min, double max ) : double
value double Value to clamp
min double Minimum allowable value
max double Maximum allowable value
리턴 double

Clamp() 공개 정적인 메소드

Clamp a given value between a range
public static Clamp ( float value, float min, float max ) : float
value float Value to clamp
min float Minimum allowable value
max float Maximum allowable value
리턴 float

Clamp() 공개 정적인 메소드

Clamp a given value between a range
public static Clamp ( int value, int min, int max ) : int
value int Value to clamp
min int Minimum allowable value
max int Maximum allowable value
리턴 int

Distance() 공개 정적인 메소드

Get the distance between two floating-point values
public static Distance ( float value1, float value2 ) : float
value1 float First value
value2 float Second value
리턴 float

GetRunningPlatform() 공개 정적인 메소드

Get the current running platform
public static GetRunningPlatform ( ) : System.Platform
리턴 System.Platform

GetRunningRuntime() 공개 정적인 메소드

Get the current running runtime
public static GetRunningRuntime ( ) : Runtime
리턴 Runtime

Hermite() 공개 정적인 메소드

public static Hermite ( double value1, double tangent1, double value2, double tangent2, double amount ) : double
value1 double
tangent1 double
value2 double
tangent2 double
amount double
리턴 double

Hermite() 공개 정적인 메소드

public static Hermite ( float value1, float tangent1, float value2, float tangent2, float amount ) : float
value1 float
tangent1 float
value2 float
tangent2 float
amount float
리턴 float

IsFinite() 공개 정적인 메소드

Test if a double precision float is a finite number
public static IsFinite ( double value ) : bool
value double
리턴 bool

IsFinite() 공개 정적인 메소드

Test if a single precision float is a finite number
public static IsFinite ( float value ) : bool
value float
리턴 bool

Lerp() 공개 정적인 메소드

public static Lerp ( double value1, double value2, double amount ) : double
value1 double
value2 double
amount double
리턴 double

Lerp() 공개 정적인 메소드

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

MD5() 공개 정적인 메소드

Compute the MD5 hash for a byte array
public static MD5 ( byte data ) : byte[]
data byte Byte array to compute the hash for
리턴 byte[]

MD5() 공개 정적인 메소드

Calculate the MD5 hash of a given string
public static MD5 ( string password ) : string
password string The password to hash
리턴 string

Round() 공개 정적인 메소드

Round a floating-point value to the nearest integer
public static Round ( float val ) : int
val float Floating point number to round
리턴 int

SHA1() 공개 정적인 메소드

Compute the SHA-1 hash for a byte array
public static SHA1 ( byte data ) : byte[]
data byte Byte array to compute the hash for
리턴 byte[]

SmoothStep() 공개 정적인 메소드

public static SmoothStep ( double value1, double value2, double amount ) : double
value1 double
value2 double
amount double
리턴 double

SmoothStep() 공개 정적인 메소드

public static SmoothStep ( float value1, float value2, float amount ) : float
value1 float
value2 float
amount float
리턴 float

ToDegrees() 공개 정적인 메소드

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

ToRadians() 공개 정적인 메소드

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

프로퍼티 상세

EnUsCulture 공개적으로 정적으로 프로퍼티

Provide a single instance of the CultureInfo class to help parsing in situations where the grid assumes an en-us culture
public static System.Globalization.CultureInfo EnUsCulture
리턴 System.Globalization.CultureInfo

Epoch 공개적으로 정적으로 프로퍼티

UNIX epoch in DateTime format
public static DateTime,System Epoch
리턴 System.DateTime