Murl::Math::Limits< DataType > Class Template Reference

The limit values class. More...

#include "murl_math_limits.h"

Public Types

typedef DataType ValueType
 The template parameter value type. More...
 

Static Public Member Functions

static const DataType Min ()
 Get the minimum finite value of the data type. More...
 
static const DataType Max ()
 Get the maximum finite value of the data type. More...
 
static const DataType NaN ()
 Get the quiet (non-signaling) "Not-a-Number" value of the data type. More...
 
static const DataType Infinity ()
 Get the positive infinity value of the data type. More...
 
static const DataType Epsilon ()
 Get the default epsilon value of the data type. More...
 

Detailed Description

template<class DataType>
class Murl::Math::Limits< DataType >

The limit values class.

This class typically implements std::numeric_limits<DataType>.

Template Parameters
DataTypeAvailable for UInt32, SInt32, UInt64, SInt64, Float and Double.

Member Typedef Documentation

◆ ValueType

template<class DataType >
typedef DataType Murl::Math::Limits< DataType >::ValueType

The template parameter value type.

Member Function Documentation

◆ Min()

template<class DataType >
static const DataType Murl::Math::Limits< DataType >::Min ( )
inlinestatic

Get the minimum finite value of the data type.

Returns
The minimum finite value of the data type.

◆ Max()

template<class DataType >
static const DataType Murl::Math::Limits< DataType >::Max ( )
inlinestatic

Get the maximum finite value of the data type.

Returns
The maximum finite value of the data type.

◆ NaN()

template<class DataType >
static const DataType Murl::Math::Limits< DataType >::NaN ( )
inlinestatic

Get the quiet (non-signaling) "Not-a-Number" value of the data type.

Returns
The quiet (non-signaling) "Not-a-Number" value of the data type or zero if not available (e.g. integer types).

◆ Infinity()

template<class DataType >
static const DataType Murl::Math::Limits< DataType >::Infinity ( )
inlinestatic

Get the positive infinity value of the data type.

Returns
The positive infinity value of the data type or zero if not available (e.g. integer types).

◆ Epsilon()

template<class DataType >
static const DataType Murl::Math::Limits< DataType >::Epsilon ( )
inlinestatic

Get the default epsilon value of the data type.

The difference between 1 and the least value greater than 1 that is representable.

Returns
The default epsilon value of the data type.

Referenced by Murl::Math::Matrix< Real >::Invert(), Murl::Math::Sphere< Real >::SetContaining(), and Murl::Math::Matrix< Real >::Solve().


The documentation for this class was generated from the following files:
  • murl_app_types.h
  • murl_math_limits.h


Copyright © 2011-2018 Spraylight GmbH.