Blobalizer
Loading...
Searching...
No Matches
Utils.h File Reference

Go to the source code of this file.

Functions

template<size_t size, class T >
Magnum::Math::Vector< size, T > cwiseMin (const Magnum::Math::Vector< size, T > &a, const Magnum::Math::Vector< size, T > &b)
 Calculate the component-wise minimum of the given vectors.
 
template<size_t size, class T >
void cwiseMinInplace (Magnum::Math::Vector< size, T > &a, const Magnum::Math::Vector< size, T > &b)
 Calculate the component-wise minimum of the given vectors and stores it into the first given vector.
 
template<size_t size, class T >
Magnum::Math::Vector< size, T > cwiseMax (const Magnum::Math::Vector< size, T > &a, const Magnum::Math::Vector< size, T > &b)
 Calculate the component-wise maximum of the given vectors.
 
template<size_t size, class T >
void cwiseMaxInplace (Magnum::Math::Vector< size, T > &a, const Magnum::Math::Vector< size, T > &b)
 Calculate the component-wise maximum of the given vectors and stores it into the first given vector.
 

Function Documentation

◆ cwiseMax()

template<size_t size, class T >
Magnum::Math::Vector< size, T > cwiseMax ( const Magnum::Math::Vector< size, T > &  a,
const Magnum::Math::Vector< size, T > &  b 
)

Calculate the component-wise maximum of the given vectors.

Template Parameters
Tthe type of the components.
sizethe dimensionality of the given vectors.
Parameters
athe first vector
bthe second vector
Returns
a new vector that consists of the component-wise maximum of the given vectors.

◆ cwiseMaxInplace()

template<size_t size, class T >
void cwiseMaxInplace ( Magnum::Math::Vector< size, T > &  a,
const Magnum::Math::Vector< size, T > &  b 
)

Calculate the component-wise maximum of the given vectors and stores it into the first given vector.

Template Parameters
Tthe type of the components.
sizethe dimensionality of the given vectors.
Parameters
athe first vector, which will be modified by this function.
bthe second vector

◆ cwiseMin()

template<size_t size, class T >
Magnum::Math::Vector< size, T > cwiseMin ( const Magnum::Math::Vector< size, T > &  a,
const Magnum::Math::Vector< size, T > &  b 
)

Calculate the component-wise minimum of the given vectors.

Template Parameters
Tthe type of the components.
sizethe dimensionality of the given vectors.
Parameters
athe first vector
bthe second vector
Returns
a new vector that consists of the component-wise minimum of the given vectors.

◆ cwiseMinInplace()

template<size_t size, class T >
void cwiseMinInplace ( Magnum::Math::Vector< size, T > &  a,
const Magnum::Math::Vector< size, T > &  b 
)

Calculate the component-wise minimum of the given vectors and stores it into the first given vector.

Template Parameters
Tthe type of the components.
sizethe dimensionality of the given vectors.
Parameters
athe first vector, which will be modified by this function.
bthe second vector