# math Namespace Reference

Mathematical helper functions. More...

## Functions

template<class T>
const T & min (const T &lhs, const T &rhs)
Minimum of two numbers.
template<class T>
const T & max (const T &lhs, const T &rhs)
Maximum of two numbers.
template<class T, class S>
sum3 (const S &vec)
Compute the sum of the elements of a 4-element vector.
template<class T, class S>
sum4 (const S &vec)
Compute the sum of the elements of a 3-element vector.
template<class T>
mul3 (const T &lhs, const T &rhs)
Element wise multiplication of a 3-element vector.
template<class T>
mul4 (const T &lhs, const T &rhs)
Element wise multiplication of a 4-element vector.
template<class T, class S>
dot3 (const T &lhs, const T &rhs)
Dot product of a 3-element vector.
template<class T, class S>
dot4 (const T &lhs, const T &rhs)
Dot product of a 4-element vector.
template<class T>
double dp4 (const T &lhs, const T &rhs)
Dot product of a 4-element vector.
template<class T>
bool check_epsilon (const T &val, const T &epsilon)
Check if val is within the given epsilon environment around zero.
template<class T>
bool check_std_epsilon (const T &val)
Check if val lies within the epsilon environment for the data type of val given by std::numeric_limits.
template<class Matrix, class Transform>
Apply a transformation to the parameter matrix of a quadric.

## Detailed Description

Mathematical helper functions.

module : Implicit Sphere

project : icaster

description: UI Node (Implementation)

## Function Documentation

 template bool math::check_epsilon ( const T & val, const T & epsilon ) ` [inline]`

Check if val is within the given epsilon environment around zero.

Returns:
returns true if the value is within the epsilon environment
Parameters:
 val the value which has to be checked wether it lies in the epsilon environment or not epsilon the epsilon interval

 template bool math::check_std_epsilon ( const T & val ) ` [inline]`

Check if val lies within the epsilon environment for the data type of val given by std::numeric_limits.

Returns:
returns true if the value is within the epsilon environment
Parameters:
 val the value which has to be checked wether it lies in the epsilon environment or not

 template const T& math::max ( const T & lhs, const T & rhs ) ` [inline]`

Maximum of two numbers.

Parameters:
 lhs left hand side argument rhs right hand side argument

 template const T& math::min ( const T & lhs, const T & rhs ) ` [inline]`

Minimum of two numbers.

Parameters:
 lhs left hand side argument rhs right hand side argument

 template void math::transformQuadric ( Matrix & quadric, const Transform & transform )

Apply a transformation to the parameter matrix of a quadric.

Parameters: