Go to the source code of this file.
|
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.
|
|
◆ 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
-
T | the type of the components. |
size | the dimensionality of the given vectors. |
- Parameters
-
a | the first vector |
b | the 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
-
T | the type of the components. |
size | the dimensionality of the given vectors. |
- Parameters
-
a | the first vector, which will be modified by this function. |
b | the 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
-
T | the type of the components. |
size | the dimensionality of the given vectors. |
- Parameters
-
a | the first vector |
b | the 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
-
T | the type of the components. |
size | the dimensionality of the given vectors. |
- Parameters
-
a | the first vector, which will be modified by this function. |
b | the second vector |