|
coastline 0.0.4
|

Go to the source code of this file.
Functions | |
| int | FloatToSignedByteIndex (float fValue) |
| Round -128 times a value to the nearest integer, limited to the range of a field of six bits. | |
| int | ConvertFloatToFixedAngle (float fValue) |
| Round -32768 times a value to the nearest integer, limited to the range of a short. | |
| int | ConvertFloatToFixedAngleNoClamp (float fValue) |
| Quantise a coordinate in steps of 1/8192 within the unsigned 24-bit range. | |
| int | FloatToByteIndex (float fValue) |
| Round a value divided by 1.41015625 to the nearest integer, limited to the range of an unsigned byte. | |
| int | FloatToEngineRpmIndex (float fValue) |
| Map engine speed from 400 to 8000 RPM to the nearest of 64 steps. | |
| int | ConvertFloatToFixed24 (float fValue) |
| Round twice a value to the nearest integer, limited to the range of a field of 24 bits. | |
| int | ConvertFloatToFixedAngle16B (float fValue) |
| Round 128 times a value to the nearest integer, limited to the range of a short. | |
| int | FloatToSignedShortIndex (float fValue) |
| Round 256 times a value to the nearest integer, limited to the range of a short. | |
| int | ConvertFloatToSignedByte (float fValue) |
| Round 8 times a value to the nearest integer, limited to the range of a signed byte. | |
| unsigned char | QuantizeFloatToLightIndex (float fScale) |
| Get the light level of a brightness, the inverse of GetLightLevelScale(). | |
| int | ConvertDoubleToSignedByte (double dValue) |
| Round 128 times a value to the nearest integer, limited to the range of a signed byte. | |
| float | SignedByteToFloat (unsigned char bValue) |
| Scale a signed field of six bits by -1/128. | |
| float | EngineRpmIndexToFloat (unsigned char bIndex) |
| Map one of 64 steps to engine speed from 400 to 8000 RPM. | |
| float | GetLightLevelScale (char nLightLevel) |
| Get the brightness of a light level. | |
| float | ConvertUintToScaledFloat (unsigned dwValue) |
| Scale a field by 1/8192. | |
| float | Signed24BitToFloat (int nValue) |
| Scale a signed field of 24 bits by 1/2. | |
| float | ConvertFixedAngleToFloat (short nValue) |
| Scale a field of a packet of two bytes by -1/32768. | |
| float | ByteToFloat (unsigned char bValue) |
| Scale a field of a packet of one unsigned byte by 1.41015625. | |
| float | FixedToRadians (short nValue) |
| Scale a field of a packet of two bytes by 1/128. | |
| float | SignedShortToFloat (short nValue) |
| Scale a field of a packet of two bytes by 1/256. | |
| float | ConvertCharToScaledFloat (signed char bValue) |
| Scale a field of a packet of one signed byte by 1/8. | |
| int FloatToSignedByteIndex | ( | float | fValue | ) |
Round -128 times a value to the nearest integer, limited to the range of a field of six bits.
| fValue | The value. |
| int ConvertFloatToFixedAngle | ( | float | fValue | ) |
Round -32768 times a value to the nearest integer, limited to the range of a short.
| fValue | The value. |
| int ConvertFloatToFixedAngleNoClamp | ( | float | fValue | ) |
Quantise a coordinate in steps of 1/8192 within the unsigned 24-bit range.
| fValue | Coordinate. |
| int FloatToByteIndex | ( | float | fValue | ) |
Round a value divided by 1.41015625 to the nearest integer, limited to the range of an unsigned byte.
| fValue | The value. |
| int FloatToEngineRpmIndex | ( | float | fValue | ) |
Map engine speed from 400 to 8000 RPM to the nearest of 64 steps.
| fValue | Engine speed, in revolutions per minute. |
| int ConvertFloatToFixed24 | ( | float | fValue | ) |
Round twice a value to the nearest integer, limited to the range of a field of 24 bits.
| fValue | The value. |
| int ConvertFloatToFixedAngle16B | ( | float | fValue | ) |
Round 128 times a value to the nearest integer, limited to the range of a short.
| fValue | The value. |
| int FloatToSignedShortIndex | ( | float | fValue | ) |
Round 256 times a value to the nearest integer, limited to the range of a short.
| fValue | The value. |
| int ConvertFloatToSignedByte | ( | float | fValue | ) |
Round 8 times a value to the nearest integer, limited to the range of a signed byte.
| fValue | The value. |
| unsigned char QuantizeFloatToLightIndex | ( | float | fScale | ) |
Get the light level of a brightness, the inverse of GetLightLevelScale().
| fScale | The brightness. |
| int ConvertDoubleToSignedByte | ( | double | dValue | ) |
Round 128 times a value to the nearest integer, limited to the range of a signed byte.
| dValue | The value. |
| float SignedByteToFloat | ( | unsigned char | bValue | ) |
Scale a signed field of six bits by -1/128.
| bValue | The field in the low six bits. |
| float EngineRpmIndexToFloat | ( | unsigned char | bIndex | ) |
Map one of 64 steps to engine speed from 400 to 8000 RPM.
| bIndex | The step. |
| float GetLightLevelScale | ( | char | nLightLevel | ) |
Get the brightness of a light level.
| nLightLevel | The level, from 0 to 3. |
| float ConvertUintToScaledFloat | ( | unsigned | dwValue | ) |
Scale a field by 1/8192.
| dwValue | The field. |
| float Signed24BitToFloat | ( | int | nValue | ) |
Scale a signed field of 24 bits by 1/2.
| nValue | The field in the low 24 bits. |
| float ConvertFixedAngleToFloat | ( | short | nValue | ) |
Scale a field of a packet of two bytes by -1/32768.
| nValue | The field. |
| float ByteToFloat | ( | unsigned char | bValue | ) |
Scale a field of a packet of one unsigned byte by 1.41015625.
| bValue | The field. |
| float FixedToRadians | ( | short | nValue | ) |
Scale a field of a packet of two bytes by 1/128.
| nValue | The field. |
| float SignedShortToFloat | ( | short | nValue | ) |
Scale a field of a packet of two bytes by 1/256.
| nValue | The field. |
| float ConvertCharToScaledFloat | ( | signed char | bValue | ) |
Scale a field of a packet of one signed byte by 1/8.
| bValue | The field. |