fbxHalfFloat Class Reference

Search for all occurrences

Detailed 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 523 of file kfbxtypes.h.

#include <kfbxtypes.h>

List of all members.

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.

Constructor & Destructor Documentation

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; }

Member Function Documentation

fbxHalfFloat& operator= ( fbxHalfFloat const &  pValue ) [inline]

Assign operator.

Parameters:
pValue The half-float to be assigned to this distance.
Returns:
This half-float.

Definition at line 544 of file kfbxtypes.h.

        { 
            mValue = pValue.mValue;
            return *this;
        }
bool operator== ( fbxHalfFloat const &  pRHS ) const [inline]

Equivalence operator.

Parameters:
pRHS The half-float to be compared with this one.
Returns:
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.

Parameters:
pRHS The half-float to be compared with this one
Returns:
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]

Retrieve the value as it is stored.

Definition at line 579 of file kfbxtypes.h.

{ return mValue; }

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

fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat
fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat fbxHalfFloat