C# Class Fusion.Core.Mathematics.Half

Afficher le fichier Open project: demiurghg/FusionEngine Class Usage Examples

Méthodes publiques

Свойство Type Description
Epsilon float
MaxValue float
MinValue float

Méthodes publiques

Méthode 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

Méthode Description
Half ( ) : System

Method Details

ConvertToFloat() public static méthode

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

ConvertToHalf() public static méthode

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.
Résultat Fusion.Core.Mathematics.Half[]

Equals() public méthode

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.
Résultat bool

Equals() public static méthode

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

Equals() public méthode

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.
Résultat bool

GetHashCode() public méthode

Returns the hash code for this instance.
public GetHashCode ( ) : int
Résultat int

Half() public méthode

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.
Résultat System

Half() public méthode

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.
Résultat System

ToString() public méthode

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

operator() public static méthode

Tests for equality between two objects.
public static operator ( ) : bool
Résultat bool

Property Details

Epsilon public_oe static_oe property

Smallest such that 1.0 + epsilon != 1.0
public static float Epsilon
Résultat float

MaxValue public_oe static_oe property

Maximum value of the number.
public static float MaxValue
Résultat float

MinValue public_oe static_oe property

Minimum value of the number.
public static float MinValue
Résultat float