FBX C++ API Reference
FbxHalfFloat Class Reference

#include <fbxpropertytypes.h>

Class Description

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 156 of file fbxpropertytypes.h.

Public Member Functions

FbxHalfFloatoperator= (const FbxHalfFloat &pValue)
 Assign operator. More...
 

Constructors

 FbxHalfFloat ()
 
 FbxHalfFloat (float pVal)
 
 FbxHalfFloat (const FbxHalfFloat &pVal)
 

boolean operation

bool operator== (const FbxHalfFloat &pRHS) const
 Equivalence operator. More...
 
bool operator!= (const FbxHalfFloat &pRHS) const
 Non-equivalence operator. More...
 

Access

const float value () const
 Retrieve the value as a float. More...
 
unsigned const short internal_value () const
 Retrieve the value as it is stored. More...
 

Constructor & Destructor Documentation

◆ FbxHalfFloat() [1/3]

◆ FbxHalfFloat() [2/3]

FbxHalfFloat ( float  pVal)

◆ FbxHalfFloat() [3/3]

FbxHalfFloat ( const FbxHalfFloat pVal)

Member Function Documentation

◆ operator=()

FbxHalfFloat& operator= ( const FbxHalfFloat pValue)

Assign operator.

Parameters
pValueThe half-float to be assigned to this instance.
Returns
This half-float.

◆ operator==()

bool operator== ( const FbxHalfFloat pRHS) const

Equivalence operator.

Parameters
pRHSThe half-float to be compared with this one.
Returns
True, if the two values are equal, false otherwise.

◆ operator!=()

bool operator!= ( const FbxHalfFloat pRHS) const

Non-equivalence operator.

Parameters
pRHSThe half-float to be compared with this one
Returns
True, if the two values are unequal, false otherwise.

◆ value()

const float value ( ) const

Retrieve the value as a float.

◆ internal_value()

unsigned const short internal_value ( ) const

Retrieve the value as it is stored.


The documentation for this class was generated from the following file: