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_ () | |
default constructor More... | |
Point3_ (_Tp _x, _Tp _y, _Tp _z) | |
Point3_ (const Point3_ &pt)=default | |
Point3_ (Point3_ &&pt) CV_NOEXCEPT=default | |
Point3_ (const Point_< _Tp > &pt) | |
Point3_ (const Vec< _Tp, 3 > &v) | |
Point3_ & | operator= (const Point3_ &pt)=default |
Point3_ & | operator= (Point3_ &&pt) CV_NOEXCEPT=default |
template<typename _Tp2 > | |
operator Point3_< _Tp2 > () const | |
conversion to another data type More... | |
operator Vec< _Tp, 3 > () const | |
conversion to cv::Vec<> More... | |
_Tp | dot (const Point3_ &pt) const |
dot product More... | |
double | ddot (const Point3_ &pt) const |
dot product computed in double-precision arithmetics More... | |
Point3_ | cross (const Point3_ &pt) const |
cross product of the 2 3D points More... | |
Public Attributes | |
_Tp | x |
x coordinate of the 3D point More... | |
_Tp | y |
y coordinate of the 3D point More... | |
_Tp | z |
z coordinate of the 3D point More... | |
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 _Tp cv::Point3_< _Tp >::value_type |
cv::Point3_< _Tp >::Point3_ | ( | ) |
default constructor
cv::Point3_< _Tp >::Point3_ | ( | _Tp | _x, |
_Tp | _y, | ||
_Tp | _z | ||
) |
|
default |
|
default |
|
explicit |
cv::Point3_< _Tp >::Point3_ | ( | const Vec< _Tp, 3 > & | v | ) |
Point3_ cv::Point3_< _Tp >::cross | ( | const Point3_< _Tp > & | pt | ) | const |
cross product of the 2 3D points
double cv::Point3_< _Tp >::ddot | ( | const Point3_< _Tp > & | pt | ) | const |
dot product computed in double-precision arithmetics
_Tp cv::Point3_< _Tp >::dot | ( | const Point3_< _Tp > & | pt | ) | const |
dot product
cv::Point3_< _Tp >::operator Point3_< _Tp2 > | ( | ) | const |
conversion to another data type
cv::Point3_< _Tp >::operator Vec< _Tp, 3 > | ( | ) | const |
conversion to cv::Vec<>
|
default |
|
default |
_Tp cv::Point3_< _Tp >::x |
x coordinate of the 3D point
_Tp cv::Point3_< _Tp >::y |
y coordinate of the 3D point
_Tp cv::Point3_< _Tp >::z |
z coordinate of the 3D point