HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Half Class Reference

#include <Types.h>

Public Member Functions

 Half (float value)
 
 operator float () const
 
bool operator== (Half rhs) const
 
bool operator!= (Half rhs) const
 
bool operator< (Half rhs) const
 
bool operator> (Half rhs) const
 
bool operator<= (Half rhs) const
 
bool operator>= (Half rhs) const
 
Half operator+ (Half rhs) const
 
Half operator- (Half rhs) const
 
Half operator* (Half rhs) const
 
Half operator/ (Half rhs) const
 
Halfoperator+= (Half rhs)
 
Halfoperator-= (Half rhs)
 
Halfoperator*= (Half rhs)
 
Halfoperator/= (Half rhs)
 
Half operator- () const
 

Detailed Description

A lightweight 16-bit half-precision float class. Based on the public-domain implementation by Paul Tessier.

Definition at line 101 of file Types.h.

Constructor & Destructor Documentation

Half::Half ( float  value)
inlineexplicit

Definition at line 104 of file Types.h.

Member Function Documentation

Half::operator float ( ) const
inline

Definition at line 105 of file Types.h.

bool Half::operator!= ( Half  rhs) const
inline

Definition at line 108 of file Types.h.

Half Half::operator* ( Half  rhs) const
inline

Definition at line 116 of file Types.h.

Half& Half::operator*= ( Half  rhs)
inline

Definition at line 121 of file Types.h.

Half Half::operator+ ( Half  rhs) const
inline

Definition at line 114 of file Types.h.

Half& Half::operator+= ( Half  rhs)
inline

Definition at line 119 of file Types.h.

Half Half::operator- ( Half  rhs) const
inline

Definition at line 115 of file Types.h.

Half Half::operator- ( ) const
inline

Definition at line 124 of file Types.h.

Half& Half::operator-= ( Half  rhs)
inline

Definition at line 120 of file Types.h.

Half Half::operator/ ( Half  rhs) const
inline

Definition at line 117 of file Types.h.

Half& Half::operator/= ( Half  rhs)
inline

Definition at line 122 of file Types.h.

bool Half::operator< ( Half  rhs) const
inline

Definition at line 109 of file Types.h.

bool Half::operator<= ( Half  rhs) const
inline

Definition at line 111 of file Types.h.

bool Half::operator== ( Half  rhs) const
inline

Definition at line 107 of file Types.h.

bool Half::operator> ( Half  rhs) const
inline

Definition at line 110 of file Types.h.

bool Half::operator>= ( Half  rhs) const
inline

Definition at line 112 of file Types.h.


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