More...
|
virtual void | Dispose () |
|
override bool | Equals (System.Object obj) |
|
| Float (HPS.Float in_that) |
|
override int | GetHashCode () |
|
|
static float | C2F (byte x) |
|
static bool | Equals (float a, float b, int tolerance) |
| Checks two floats for equality within a specified tolerance. The tolerance is specified in float increments that scale with the floats themselves. More...
|
|
static bool | Equals (float a, float b) |
| Checks two floats for equality within a specified tolerance. The tolerance is specified in float increments that scale with the floats themselves. More...
|
|
static bool | Equals (double a, double b, int tolerance) |
|
static bool | Equals (double a, double b) |
|
static UInt32 | extract_sign_bit (float a) |
|
static UInt32 | extract_sign_bit (double a) |
|
static UInt32 | extract_uint32_t (float a) |
|
static bool | IsAbnormal (float a) |
| See if the value is not "normal" (infinite or NaN) More...
|
|
static bool | IsAbnormal (double a) |
|
static bool | IsInfinite (float a) |
| See if the value is either infinity More...
|
|
static bool | IsInfinite (double a) |
|
static bool | IsNAN (float a) |
| See if the value is Not-A-Number More...
|
|
static bool | IsNAN (double a) |
|
static bool | match (float a, float b) |
|
static bool | match (double a, double b) |
|
static bool | operator!= (HPS.Float a, HPS.Float b) |
|
static bool | operator== (HPS.Float a, HPS.Float b) |
|
static byte | unit_to_byte (float a) |
|
static byte | unit_to_byte_scaled (float a, byte mix) |
|
|
virtual void | deleteCptr () |
|
|
bool | cMemOwn |
|
HandleRef | cptr |
|
The Float class is a concept class that exposes a number of useful utilities for working with floating point numbers.
◆ Equals() [1/2]
static bool HPS.Float.Equals |
( |
float |
a, |
|
|
float |
b, |
|
|
int |
tolerance |
|
) |
| |
|
inlinestatic |
Checks two floats for equality within a specified tolerance. The tolerance is specified in float increments that scale with the floats themselves.
◆ Equals() [2/2]
static bool HPS.Float.Equals |
( |
float |
a, |
|
|
float |
b |
|
) |
| |
|
inlinestatic |
Checks two floats for equality within a specified tolerance. The tolerance is specified in float increments that scale with the floats themselves.
◆ IsAbnormal()
static bool HPS.Float.IsAbnormal |
( |
float |
a | ) |
|
|
inlinestatic |
See if the value is not "normal" (infinite or NaN)
◆ IsInfinite()
static bool HPS.Float.IsInfinite |
( |
float |
a | ) |
|
|
inlinestatic |
See if the value is either infinity
◆ IsNAN()
static bool HPS.Float.IsNAN |
( |
float |
a | ) |
|
|
inlinestatic |
See if the value is Not-A-Number
The documentation for this class was generated from the following file:
- internals/hps_core/source/cs/HPS.Float.cs