HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
half.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/gf/ilmbase_half.h"
#include "pxr/base/gf/ilmbase_halfLimits.h"
#include <type_traits>
+ Include dependency graph for half.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 pxr_half
 

Typedefs

using GfHalf = pxr_half::half
 A 16-bit floating point data type. More...
 

Functions

template<typename Half >
std::enable_if< std::is_same
< Half, half >::value, size_t >
::type 
pxr_half::hash_value (const Half &h)
 Overload hash_value for half. More...
 
GfHalf GfDot (GfHalf a, GfHalf b)
 

Detailed Description

This header serves to simply bring in the half float datatype and provide a hash_value function. For documentation, of the half type, please see the half header in ilmbase_half.h.

Definition in file half.h.

Typedef Documentation

A 16-bit floating point data type.

Definition at line 42 of file half.h.

Function Documentation

GfHalf GfDot ( GfHalf  a,
GfHalf  b 
)
inline

Returns the dot (inner) product of two vectors. For scalar types, this is just the regular product.

Definition at line 55 of file half.h.