Definition for how to map dataRef values to (u)int8, ie. to an integer range of 8 bits.
More...
#include <XPMPRemote.h>
|
float | minV = 0.0f |
| minimum transferred value More...
|
|
float | range = 0.0f |
| range of transferred value = maxV - minV More...
|
|
Definition for how to map dataRef values to (u)int8, ie. to an integer range of 8 bits.
◆ RemoteDataRefPackTy()
XPMP2::RemoteDataRefPackTy::RemoteDataRefPackTy |
( |
float |
_min, |
|
|
float |
_max |
|
) |
| |
|
inline |
Constructor sets minimum value and range.
◆ pack()
std::uint8_t XPMP2::RemoteDataRefPackTy::pack |
( |
float |
f | ) |
const |
|
inline |
pack afloat value to integer
◆ unpack()
float XPMP2::RemoteDataRefPackTy::unpack |
( |
std::uint8_t |
i | ) |
const |
|
inline |
unpack an integer value to float
◆ minV
float XPMP2::RemoteDataRefPackTy::minV = 0.0f |
minimum transferred value
◆ range
float XPMP2::RemoteDataRefPackTy::range = 0.0f |
range of transferred value = maxV - minV
The documentation for this struct was generated from the following file: