C# Class Fusion.Core.Mathematics.Half

Mostrar archivo Open project: demiurghg/FusionEngine Class Usage Examples

Public Properties

Property Type Description
Epsilon float
MaxValue float
MinValue float

Public Methods

Method Description
ConvertToFloat ( Half values ) : float[]

Converts an array of half precision values into full precision values.

ConvertToHalf ( float values ) : Fusion.Core.Mathematics.Half[]

Converts an array of full precision values into half precision values.

Equals ( Half other ) : bool

Returns a value that indicates whether the current instance is equal to the specified object.

Equals ( Half &value1, Half &value2 ) : bool

Determines whether the specified object instances are considered equal.

Equals ( object obj ) : bool

Returns a value that indicates whether the current instance is equal to a specified object.

GetHashCode ( ) : int

Returns the hash code for this instance.

Half ( float value ) : System

Initializes a new instance of the Half structure.

Half ( ushort rawvalue ) : System

Initializes a new instance of the Half structure.

ToString ( ) : string

Converts the value of the object to its equivalent string representation.

operator ( ) : bool

Tests for equality between two objects.

Private Methods

Method Description
Half ( ) : System

Method Details

ConvertToFloat() public static method

Converts an array of half precision values into full precision values.
public static ConvertToFloat ( Half values ) : float[]
values Half The values to be converted.
return float[]

ConvertToHalf() public static method

Converts an array of full precision values into half precision values.
public static ConvertToHalf ( float values ) : Fusion.Core.Mathematics.Half[]
values float The values to be converted.
return Fusion.Core.Mathematics.Half[]

Equals() public method

Returns a value that indicates whether the current instance is equal to the specified object.
public Equals ( Half other ) : bool
other Half Object to make the comparison with.
return bool

Equals() public static method

Determines whether the specified object instances are considered equal.
public static Equals ( Half &value1, Half &value2 ) : bool
value1 Half
value2 Half
return bool

Equals() public method

Returns a value that indicates whether the current instance is equal to a specified object.
public Equals ( object obj ) : bool
obj object Object to make the comparison with.
return bool

GetHashCode() public method

Returns the hash code for this instance.
public GetHashCode ( ) : int
return int

Half() public method

Initializes a new instance of the Half structure.
public Half ( float value ) : System
value float The floating point value that should be stored in 16 bit format.
return System

Half() public method

Initializes a new instance of the Half structure.
public Half ( ushort rawvalue ) : System
rawvalue ushort The floating point value that should be stored in 16 bit format.
return System

ToString() public method

Converts the value of the object to its equivalent string representation.
public ToString ( ) : string
return string

operator() public static method

Tests for equality between two objects.
public static operator ( ) : bool
return bool

Property Details

Epsilon public_oe static_oe property

Smallest such that 1.0 + epsilon != 1.0
public static float Epsilon
return float

MaxValue public_oe static_oe property

Maximum value of the number.
public static float MaxValue
return float

MinValue public_oe static_oe property

Minimum value of the number.
public static float MinValue
return float