Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub
Related Functions

Related functions for Simd::Rectangle structure. More...

Functions

template<typename T >
bool operator== (const Rectangle< T > &r1, const Rectangle< T > &r2)
 Compares two rectangles on equality. More...
 
template<typename T >
bool operator!= (const Rectangle< T > &r1, const Rectangle< T > &r2)
 Compares two rectangles on inequality. More...
 
template<class T1 , class T2 >
Rectangle< T1 > operator/ (const Rectangle< T1 > &rect, const T2 &value)
 Divides the rectangle on the scalar value. More...
 
template<class T1 , class T2 >
Rectangle< T1 > operator* (const Rectangle< T1 > &rect, const T2 &value)
 Multiplies the rectangle on the scalar value. More...
 
template<class T1 , class T2 >
Rectangle< T1 > operator* (const T2 &value, const Rectangle< T1 > &rect)
 Multiplies the scalar value on the rectangle. More...
 
template<typename T >
Rectangle< T > operator+ (const Rectangle< T > &r1, const Rectangle< T > &r2)
 Sums the corresponding rectangle's coordinates of two rectangles.. More...
 

Detailed Description

Related functions for Simd::Rectangle structure.

Function Documentation

◆ operator==()

template< typename T > bool operator== ( const Rectangle< T > &  r1,
const Rectangle< T > &  r2 
)

Compares two rectangles on equality.

Parameters
[in]r1- a first rectangle.
[in]r2- a second rectangle.
Returns
a result of comparison.

◆ operator!=()

template< typename T > bool operator!= ( const Rectangle< T > &  r1,
const Rectangle< T > &  r2 
)

Compares two rectangles on inequality.

Parameters
[in]r1- a first rectangle.
[in]r2- a second rectangle.
Returns
a result of comparison.

◆ operator/()

template< class T1, class T2 > Rectangle< T1 > operator/ ( const Rectangle< T1 > &  rect,
const T2 &  value 
)

Divides the rectangle on the scalar value.

Parameters
[in]rect- a rectangle.
[in]value- a scalar value.
Returns
a result of division.

◆ operator*() [1/2]

template< class T1, class T2 > Rectangle< T1 > operator* ( const Rectangle< T1 > &  rect,
const T2 &  value 
)

Multiplies the rectangle on the scalar value.

Parameters
[in]rect- a rectangle.
[in]value- a scalar value.
Returns
a result of multiplication.

◆ operator*() [2/2]

template< class T1, class T2 > Rectangle< T1 > operator* ( const T2 &  value,
const Rectangle< T1 > &  rect 
)

Multiplies the scalar value on the rectangle.

Parameters
[in]value- a scalar value.
[in]rect- a rectangle.
Returns
a result of multiplication.

◆ operator+()

template< typename T > Rectangle< T > operator+ ( const Rectangle< T > &  r1,
const Rectangle< T > &  r2 
)

Sums the corresponding rectangle's coordinates of two rectangles..

Parameters
[in]r1- a first rectangle.
[in]r2- a second rectangle.
Returns
a rectangle with result coordinates.