#include <core.hpp>
Public Types | |
typedef _Tp | value_type |
Public Member Functions | |
double | ddot (const Point_ &pt) const |
dot product computed in double-precision arithmetics | |
_Tp | dot (const Point_ &pt) const |
dot product | |
bool | inside (const Rect_< _Tp > &r) const |
checks whether the point is inside the specified rectangle | |
operator CvPoint () const | |
conversion to the old-style C structures | |
operator CvPoint2D32f () const | |
template<typename _Tp2 > | |
operator Point_< _Tp2 > () const | |
conversion to another data type | |
operator Vec< _Tp, 2 > () const | |
Point_ & | operator= (const Point_ &pt) |
Point_ (const Vec< _Tp, 2 > &v) | |
Point_ (const Size_< _Tp > &sz) | |
Point_ (const CvPoint2D32f &pt) | |
Point_ (const CvPoint &pt) | |
Point_ (const Point_ &pt) | |
Point_ (_Tp _x, _Tp _y) | |
Point_ () | |
Public Attributes | |
_Tp | x |
_Tp | y |
template 2D point class.
The class defines a point in 2D space. Data type of the point coordinates is specified as a template parameter. There are a few shorter aliases available for user convenience. See cv::Point, cv::Point2i, cv::Point2f and cv::Point2d.
typedef _Tp cv::Point_< _Tp >::value_type |
cv::Point_< _Tp >::Point_ | ( | ) | [inline] |
cv::Point_< _Tp >::Point_ | ( | _Tp | _x, | |
_Tp | _y | |||
) | [inline] |
cv::Point_< _Tp >::Point_ | ( | const Point_< _Tp > & | pt | ) | [inline] |
cv::Point_< _Tp >::Point_ | ( | const CvPoint & | pt | ) | [inline] |
cv::Point_< _Tp >::Point_ | ( | const CvPoint2D32f & | pt | ) | [inline] |
cv::Point_< _Tp >::Point_ | ( | const Size_< _Tp > & | sz | ) | [inline] |
cv::Point_< _Tp >::Point_ | ( | const Vec< _Tp, 2 > & | v | ) | [inline] |
double cv::Point_< _Tp >::ddot | ( | const Point_< _Tp > & | pt | ) | const [inline] |
dot product computed in double-precision arithmetics
_Tp cv::Point_< _Tp >::dot | ( | const Point_< _Tp > & | pt | ) | const [inline] |
dot product
bool cv::Point_< _Tp >::inside | ( | const Rect_< _Tp > & | r | ) | const [inline] |
checks whether the point is inside the specified rectangle
cv::Point_< _Tp >::operator CvPoint | ( | ) | const [inline] |
conversion to the old-style C structures
cv::Point_< _Tp >::operator CvPoint2D32f | ( | ) | const [inline] |
cv::Point_< _Tp >::operator Point_< _Tp2 > | ( | ) | const [inline] |
conversion to another data type
cv::Point_< _Tp >::operator Vec< _Tp, 2 > | ( | ) | const [inline] |
Point_< _Tp > & cv::Point_< _Tp >::operator= | ( | const Point_< _Tp > & | pt | ) | [inline] |
_Tp cv::Point_< _Tp >::x |
_Tp cv::Point_< _Tp >::y |