"L. Spiro Engine"
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

lsm::CFloat16 Class Reference

A basic class for converting to and from 16-bit floating-point values. More...

#include <LSMFloat16.h>

List of all members.

Classes

union  LSM_FLOAT_INT

Public Member Functions

LSE_CALLCTOR CFloat16 (LSFLOAT _fValue)
LSE_CALLCTOR CFloat16 (const CFloat16 &_f16Value)
LSE_CALL operator LSFLOAT () const

Protected Types

typedef union
lsm::CFloat16::LSM_FLOAT_INT
LPLSM_FLOAT_INT
typedef union
lsm::CFloat16::LSM_FLOAT_INT 
LPCLSM_FLOAT_INT

Protected Member Functions

LSVOID LSE_CALL FromFloat (LSFLOAT _fValue)
LSFLOAT LSE_CALL ToFloat () const

Protected Attributes

LSUINT16 m_ui16Value

Detailed Description

A basic class for converting to and from 16-bit floating-point values.

Class CFloat16 Description: A basic class for converting to and from 16-bit floating-point values. Does not provide operators for working directly on 16-bit floats.


Member Typedef Documentation

A float as a singned or unsigned integer (32 bits).


Member Function Documentation

LSVOID LSE_CALL lsm::CFloat16::FromFloat ( LSFLOAT  _fValue) [protected]

Convert from a 32-bit floating-point number to a 16-bit floating-point number.

Parameters:
_fValueThe value to convert.
LSE_CALL lsm::CFloat16::operator LSFLOAT ( ) const

Convert to a 32-bit floating-point number.

Returns:
Returns the 32-bit floating-point representation of this number.
LSFLOAT LSE_CALL lsm::CFloat16::ToFloat ( ) const [protected]

Convert from a 16-bit floating-point number to a 32-bit floating-point number.

Returns:
Returns the 32-bit converted number.

Member Data Documentation

LSUINT16 lsm::CFloat16::m_ui16Value [protected]

This value.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator