C# Class OpenMetaverse.Utils

ファイルを表示 Open project: 3di/3di-viewer-rei-libs

Public Properties

Property Type Description
EnUsCulture System.Globalization.CultureInfo
Epoch System.DateTime

Public Methods

Method Description
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

Method Details

Clamp() public static method

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
return double

Clamp() public static method

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
return float

Clamp() public static method

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
return int

Distance() public static method

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

GetRunningPlatform() public static method

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

GetRunningRuntime() public static method

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

Hermite() public static method

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

Hermite() public static method

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

IsFinite() public static method

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

IsFinite() public static method

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

Lerp() public static method

public static Lerp ( double value1, double value2, double amount ) : double
value1 double
value2 double
amount double
return double

Lerp() public static method

public static Lerp ( float value1, float value2, float amount ) : float
value1 float
value2 float
amount float
return float

MD5() public static method

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

MD5() public static method

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

Round() public static method

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

SHA1() public static method

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

SmoothStep() public static method

public static SmoothStep ( double value1, double value2, double amount ) : double
value1 double
value2 double
amount double
return double

SmoothStep() public static method

public static SmoothStep ( float value1, float value2, float amount ) : float
value1 float
value2 float
amount float
return float

ToDegrees() public static method

public static ToDegrees ( float radians ) : float
radians float
return float

ToRadians() public static method

public static ToRadians ( float degrees ) : float
degrees float
return float

Property Details

EnUsCulture public_oe static_oe property

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
return System.Globalization.CultureInfo

Epoch public_oe static_oe property

UNIX epoch in DateTime format
public static DateTime,System Epoch
return System.DateTime