Struct Half
An alias to ushort packed with a 16-bit floating-point number consisting of a sign bit, a 5-bit biased exponent, and a 10-bit mantissa.
Assembly: JeremyAnsel.DirectX.DXMath.dll
Syntax
public struct Half : IEquatable<Half>
Methods
|
Edit this page
View Source
Equals(Half)
Declaration
public readonly bool Equals(Half other)
Parameters
| Type |
Name |
Description |
| Half |
other |
|
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override readonly string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(Half, Half)
Declaration
public static bool operator ==(Half left, Half right)
Parameters
| Type |
Name |
Description |
| Half |
left |
|
| Half |
right |
|
Returns
|
Edit this page
View Source
explicit operator Half(double)
Declaration
[SuppressMessage("Usage", "CA2225:Les surcharges d'opérateur offrent d'autres méthodes nommées", Justification = "Reviewed.")]
public static explicit operator Half(double value)
Parameters
Returns
|
Edit this page
View Source
explicit operator Half(float)
Declaration
[SuppressMessage("Usage", "CA2225:Les surcharges d'opérateur offrent d'autres méthodes nommées", Justification = "Reviewed.")]
public static explicit operator Half(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
The float value.
|
Returns
|
Edit this page
View Source
implicit operator double(Half)
Declaration
[SuppressMessage("Usage", "CA2225:Les surcharges d'opérateur offrent d'autres méthodes nommées", Justification = "Reviewed.")]
public static implicit operator double(Half value)
Parameters
| Type |
Name |
Description |
| Half |
value |
The Half value.
|
Returns
|
Edit this page
View Source
implicit operator float(Half)
Declaration
[SuppressMessage("Usage", "CA2225:Les surcharges d'opérateur offrent d'autres méthodes nommées", Justification = "Reviewed.")]
public static implicit operator float(Half value)
Parameters
| Type |
Name |
Description |
| Half |
value |
The Half value.
|
Returns
|
Edit this page
View Source
operator !=(Half, Half)
Declaration
public static bool operator !=(Half left, Half right)
Parameters
| Type |
Name |
Description |
| Half |
left |
|
| Half |
right |
|
Returns
Implements