OpenCV  3.0.0-rc1
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
cv::Point3_< _Tp > Class Template Reference

Template class for 3D points specified by its coordinates x, y and z. More...

#include "types.hpp"

Public Types

typedef _Tp value_type
 

Public Member Functions

 Point3_ ()
 
 Point3_ (_Tp _x, _Tp _y, _Tp _z)
 
 Point3_ (const Point3_ &pt)
 
 Point3_ (const Point_< _Tp > &pt)
 
 Point3_ (const Vec< _Tp, 3 > &v)
 
Point3_ cross (const Point3_ &pt) const
 cross product of the 2 3D points More...
 
double ddot (const Point3_ &pt) const
 dot product computed in double-precision arithmetics More...
 
_Tp dot (const Point3_ &pt) const
 dot product More...
 
template<typename _Tp2 >
 operator Point3_< _Tp2 > () const
 conversion to another data type More...
 
 operator Vec< _Tp, 3 > () const
 conversion to cv::Vec<> More...
 
Point3_operator= (const Point3_ &pt)
 

Public Attributes

_Tp x
 
_Tp y
 
_Tp z
 

Detailed Description

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

Template class for 3D points specified by its coordinates x, y and z.

An instance of the class is interchangeable with the C structure CvPoint2D32f . Similarly to Point_ , the coordinates of 3D points can be converted to another type. The vector arithmetic and comparison operations are also supported.

The following Point3_<> aliases are available:

typedef Point3_<int> Point3i;
typedef Point3_<float> Point3f;
typedef Point3_<double> Point3d;
See also
cv::Point3i, cv::Point3f and cv::Point3d
Examples:
cout_mat.cpp.

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename _Tp>
cv::Point3_< _Tp >::Point3_ ( )
template<typename _Tp>
cv::Point3_< _Tp >::Point3_ ( _Tp  _x,
_Tp  _y,
_Tp  _z 
)
template<typename _Tp>
cv::Point3_< _Tp >::Point3_ ( const Point3_< _Tp > &  pt)
template<typename _Tp>
cv::Point3_< _Tp >::Point3_ ( const Point_< _Tp > &  pt)
explicit
template<typename _Tp>
cv::Point3_< _Tp >::Point3_ ( const Vec< _Tp, 3 > &  v)

Member Function Documentation

template<typename _Tp>
Point3_ cv::Point3_< _Tp >::cross ( const Point3_< _Tp > &  pt) const

cross product of the 2 3D points

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

dot product computed in double-precision arithmetics

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

dot product

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

conversion to another data type

template<typename _Tp>
cv::Point3_< _Tp >::operator Vec< _Tp, 3 > ( ) const

conversion to cv::Vec<>

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

Member Data Documentation

template<typename _Tp>
_Tp cv::Point3_< _Tp >::x
template<typename _Tp>
_Tp cv::Point3_< _Tp >::y
template<typename _Tp>
_Tp cv::Point3_< _Tp >::z

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