MaterialX 1.38.7
No Matches
Half Class Reference

A lightweight 16-bit half-precision float class. More...

#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.

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