OpenCV  2.4.13.2
Open Source Computer Vision
cv::Point_< _Tp > Class Template Reference

#include <core.hpp>

Public Types

typedef _Tp value_type
 

Public Member Functions

 Point_ ()
 
 Point_ (_Tp _x, _Tp _y)
 
 Point_ (const Point_ &pt)
 
 Point_ (const CvPoint &pt)
 
 Point_ (const CvPoint2D32f &pt)
 
 Point_ (const Size_< _Tp > &sz)
 
 Point_ (const Vec< _Tp, 2 > &v)
 
Point_operator= (const Point_ &pt)
 
template<typename _Tp2 >
 operator Point_< _Tp2 > () const
 conversion to another data type More...
 
 operator CvPoint () const
 conversion to the old-style C structures More...
 
 operator CvPoint2D32f () const
 
 operator Vec< _Tp, 2 > () const
 
_Tp dot (const Point_ &pt) const
 dot product More...
 
double ddot (const Point_ &pt) const
 dot product computed in double-precision arithmetics More...
 
double cross (const Point_ &pt) const
 cross-product More...
 
bool inside (const Rect_< _Tp > &r) const
 checks whether the point is inside the specified rectangle More...
 

Public Attributes

_Tp x
 
_Tp y
 

Detailed Description

template<typename _Tp>
class cv::Point_< _Tp >

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.

Member Typedef Documentation

§ value_type

template<typename _Tp>
typedef _Tp cv::Point_< _Tp >::value_type

Constructor & Destructor Documentation

§ Point_() [1/7]

template<typename _Tp >
cv::Point_< _Tp >::Point_ ( )
inline

§ Point_() [2/7]

template<typename _Tp>
cv::Point_< _Tp >::Point_ ( _Tp  _x,
_Tp  _y 
)
inline

§ Point_() [3/7]

template<typename _Tp>
cv::Point_< _Tp >::Point_ ( const Point_< _Tp > &  pt)
inline

§ Point_() [4/7]

template<typename _Tp>
cv::Point_< _Tp >::Point_ ( const CvPoint pt)
inline

§ Point_() [5/7]

template<typename _Tp>
cv::Point_< _Tp >::Point_ ( const CvPoint2D32f pt)
inline

§ Point_() [6/7]

template<typename _Tp>
cv::Point_< _Tp >::Point_ ( const Size_< _Tp > &  sz)
inline

§ Point_() [7/7]

template<typename _Tp>
cv::Point_< _Tp >::Point_ ( const Vec< _Tp, 2 > &  v)
inline

Member Function Documentation

§ cross()

template<typename _Tp >
double cv::Point_< _Tp >::cross ( const Point_< _Tp > &  pt) const
inline

cross-product

§ ddot()

template<typename _Tp >
double cv::Point_< _Tp >::ddot ( const Point_< _Tp > &  pt) const
inline

dot product computed in double-precision arithmetics

§ dot()

template<typename _Tp >
_Tp cv::Point_< _Tp >::dot ( const Point_< _Tp > &  pt) const
inline

dot product

§ inside()

template<typename _Tp>
bool cv::Point_< _Tp >::inside ( const Rect_< _Tp > &  r) const
inline

checks whether the point is inside the specified rectangle

§ operator CvPoint()

template<typename _Tp >
cv::Point_< _Tp >::operator CvPoint ( ) const
inline

conversion to the old-style C structures

§ operator CvPoint2D32f()

template<typename _Tp >
cv::Point_< _Tp >::operator CvPoint2D32f ( ) const
inline

§ operator Point_< _Tp2 >()

template<typename _Tp >
template<typename _Tp2 >
cv::Point_< _Tp >::operator Point_< _Tp2 > ( ) const
inline

conversion to another data type

§ operator Vec< _Tp, 2 >()

template<typename _Tp >
cv::Point_< _Tp >::operator Vec< _Tp, 2 > ( ) const
inline

§ operator=()

template<typename _Tp >
Point_< _Tp > & cv::Point_< _Tp >::operator= ( const Point_< _Tp > &  pt)
inline

Member Data Documentation

§ x

template<typename _Tp>
_Tp cv::Point_< _Tp >::x

§ y

template<typename _Tp>
_Tp cv::Point_< _Tp >::y

The documentation for this class was generated from the following files: