FBX SDK half-float class.
Property used to store half-float (16 bit float) number. This class only holds the value in 2 byte buffer (unsigned short). There is no direct math manipulation of this type except for the conversion to/from float. On disk, this type is also saved as an unsigned short.
Definition at line 523 of file kfbxtypes.h.
#include <kfbxtypes.h>
Constructors |
|
| fbxHalfFloat () | |
| fbxHalfFloat (float pVal) | |
| fbxHalfFloat (const fbxHalfFloat &pVal) | |
Assignment operation |
|
| fbxHalfFloat & | operator= (fbxHalfFloat const &pValue) |
| Assign operator. |
|
boolean operation |
|
| bool | operator== (fbxHalfFloat const &pRHS) const |
| Equivalence operator. |
|
| bool | operator!= (fbxHalfFloat const &pRHS) const |
| Non-equivalence operator. |
|
Access |
|
| float const | value () const |
| Retrieve the value as a float. |
|
| unsigned short const | internal_value () const |
| Retrieve the value as it is stored. |
|
| fbxHalfFloat | ( | ) | [inline] |
Definition at line 530 of file kfbxtypes.h.
{ mValue = 0; }
| fbxHalfFloat | ( | float | pVal | ) | [inline] |
Definition at line 531 of file kfbxtypes.h.
{ mValue = FtoHF(&pVal); }
| fbxHalfFloat | ( | const fbxHalfFloat & | pVal | ) | [inline] |
Definition at line 532 of file kfbxtypes.h.
{ mValue = pVal.mValue; }
| fbxHalfFloat& operator= | ( | fbxHalfFloat const & | pValue | ) | [inline] |
Assign operator.
| pValue | The half-float to be assigned to this distance. |
Definition at line 544 of file kfbxtypes.h.
{
mValue = pValue.mValue;
return *this;
}
| bool operator== | ( | fbxHalfFloat const & | pRHS | ) | const [inline] |
Equivalence operator.
| pRHS | The half-float to be compared with this one. |
True, if the two values are equal,
false otherwise.Definition at line 560 of file kfbxtypes.h.
{ return (mValue == pRHS.mValue); }
| bool operator!= | ( | fbxHalfFloat const & | pRHS | ) | const [inline] |
Non-equivalence operator.
| pRHS | The half-float to be compared with this one |
True, if the two values are unequal,
false otherwise.Definition at line 566 of file kfbxtypes.h.
{ return !operator==(pRHS); }
| float const value | ( | ) | const [inline] |
Retrieve the value as a float.
Definition at line 575 of file kfbxtypes.h.
{ return HFtoF(mValue); }
| unsigned short const internal_value | ( | ) | const [inline] |