Static helper class for the half data type (16 bit floating point)
More...
#include <Half.h>
List of all members.
Static Public Member Functions |
static bool | IsZero (PLCore::uint16 nHalf) |
| Returns whether or not the given half value is zero.
|
static bool | IsNegative (PLCore::uint16 nHalf) |
| Returns whether or not the given half value is negative.
|
static bool | IsNotANumber (PLCore::uint16 nHalf) |
| Returns whether or not the given half value is not a number (NAN)
|
static bool | IsFinite (PLCore::uint16 nHalf) |
| Returns whether or not the given half value is finite.
|
static bool | IsInfinity (PLCore::uint16 nHalf) |
| Returns whether or not the given half value is infinity.
|
static bool | IsNormalized (PLCore::uint16 nHalf) |
| Returns whether or not the given half value is normalized.
|
static bool | IsDenormalized (PLCore::uint16 nHalf) |
| Returns whether or not the given half value is de-normalized.
|
static PLMATH_API float | ToFloat (PLCore::uint16 nHalf) |
| Converts a given half value into a float value.
|
static PLMATH_API PLCore::uint16 | FromFloat (float fFloat) |
| Converts a given float value into a half value.
|
Static Public Attributes |
static PLMATH_API const
PLCore::uint16 | Zero |
static PLMATH_API const
PLCore::uint16 | One |
static PLMATH_API const float | SmallestPositive |
static PLMATH_API const float | SmallestPositiveNormalized |
static PLMATH_API const float | LargestPositive |
static PLMATH_API const float | Epsilon |
Detailed Description
Static helper class for the half data type (16 bit floating point)
- Note:
-
Member Function Documentation
Returns whether or not the given half value is zero.
- Parameters:
-
[in] | nHalf | Half value to check |
- Returns:
- 'true' if the given half value is zero, else 'false'
Returns whether or not the given half value is negative.
- Parameters:
-
[in] | nHalf | Half value to check |
- Returns:
- 'true' if the given half value is negative, else 'false'
Returns whether or not the given half value is not a number (NAN)
- Parameters:
-
[in] | nHalf | Half value to check |
- Returns:
- 'true' if the given half value is not a number, else 'false'
Returns whether or not the given half value is finite.
- Parameters:
-
[in] | nHalf | Half value to check |
- Returns:
- 'true' if the given half value is finite, else 'false'
Returns whether or not the given half value is infinity.
- Parameters:
-
[in] | nHalf | Half value to check |
- Returns:
- 'true' if the given half value is infinity, else 'false'
Returns whether or not the given half value is normalized.
- Parameters:
-
[in] | nHalf | Half value to check |
- Returns:
- 'true' if the given half value is normalized, else 'false'
Returns whether or not the given half value is de-normalized.
- Parameters:
-
[in] | nHalf | Half value to check |
- Returns:
- 'true' if the given half value is de-normalized, else 'false'
Converts a given half value into a float value.
- Parameters:
-
[in] | nHalf | Half value to convert |
- Returns:
- The given half value as float
Converts a given float value into a half value.
- Parameters:
-
[in] | fFloat | Float value to convert |
- Returns:
- The given float value as half
Member Data Documentation
Smallest positive half (5.96046448e-08f)
Smallest positive normalized half (6.10351562e-05f)
Largest positive half (65504.0f)
Smallest positive epsilon for which 1+e!=1 (0.00097656f)
The documentation for this class was generated from the following files: