The Point structure defines the x- and y-coordinates of a point.
More...
|
T | x |
| Specifies the x-coordinate of a point.
|
|
T | y |
| Specifies the y-coordinate of a point.
|
|
template<typename T>
struct Simd::Point< T >
The Point structure defines the x- and y-coordinates of a point.
Related Functions.
Creates a new Point structure that contains the default (0, 0) coordinates.
Creates a new Point structure that contains the specified coordinates.
- Parameters
-
[in] | tx | - initial X value. |
[in] | ty | - initial Y value. |
Point |
( |
const TPoint< TP > & |
p | ) |
|
Creates a new Point structure on the base of another point of arbitrary type.
- Parameters
-
[in] | p | - a point of arbitrary type. |
Point |
( |
const cv::Size_< TS > & |
size | ) |
|
Creates a new Point structure on the base of OpenCV size type.
- Note
- You have to define SIMD_OPENCV_ENABLE in order to use this functionality.
- Parameters
-
[in] | size | - an OpenCV size. |
operator TPoint< TP > |
( |
| ) |
const |
Converts itself to point of arbitrary type.
- Returns
- a point of arbitrary type.
Performs copying from point of arbitrary type.
- Parameters
-
[in] | p | - a point of arbitrary type. |
- Returns
- a reference to itself.
Adds to itself point of arbitrary type.
- Parameters
-
[in] | p | - a point of arbitrary type. |
- Returns
- a reference to itself.
Subtracts from itself point of arbitrary type.
- Parameters
-
[in] | p | - a point of arbitrary type. |
- Returns
- a reference to itself.
Point& operator*= |
( |
const TA & |
a | ) |
|
Multiplies itself by value of arbitrary type.
- Parameters
-
[in] | a | - a factor of arbitrary type. |
- Returns
- a reference to itself.
SIMD_INLINE Point< T > & operator/= |
( |
double |
a | ) |
|
Divides itself into given value.
- Parameters
-
[in] | a | - a value of divider. |
- Returns
- a reference to itself.
SIMD_INLINE Point< T > operator<< |
( |
ptrdiff_t |
shift | ) |
const |
Performs shift bit left for value of point coordinates.
- Note
- It function is actual for integer types of Point.
- Parameters
-
[in] | shift | - a shift value. |
- Returns
- a new point with shifted coordinates.
SIMD_INLINE Point< T > operator>> |
( |
ptrdiff_t |
shift | ) |
const |
Performs shift bit right for value of point coordinates.
- Note
- It function is actual for integer types of Point.
- Parameters
-
[in] | shift | - a shift value. |
- Returns
- a new point with shifted coordinates.