nndeploy C++ API  0.2.0
nndeploy C++ API
Public Types | Public Member Functions | Public Attributes | List of all members
nndeploy::base::Point3< T > Class Template Reference

Template class for 3D points specified by its coordinates x_, y_ and z_. More...

#include <type.h>

Public Types

typedef T value_type
 

Public Member Functions

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...
 
dot (const Point3 &pt) const
 dot product More...
 
template<typename Tp2 >
 operator Point3< Tp2 > () const
 conversion to another data type More...
 
Point3operator= (const Point3 &pt)=default
 
Point3operator= (Point3 &&pt)=default
 
 Point3 ()
 default constructor More...
 
 Point3 (const Point3 &pt)=default
 
 Point3 (const Point< T > &pt)
 
 Point3 (Point3 &&pt)=default
 
 Point3 (T x, T y, T z)
 

Public Attributes

x_
 x_ coordinate of the 3D point More...
 
y_
 y_ coordinate of the 3D point More...
 
z_
 z_ coordinate of the 3D point More...
 

Detailed Description

template<typename T>
class nndeploy::base::Point3< T >

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;
Point3< double > Point3d
Definition: type.h:233
Point3< float > Point3f
Definition: type.h:232
Point3< int > Point3i
Definition: type.h:231
See also
Point3i, Point3f and Point3d

Definition at line 200 of file type.h.

Member Typedef Documentation

◆ value_type

template<typename T >
typedef T nndeploy::base::Point3< T >::value_type

Definition at line 202 of file type.h.

Constructor & Destructor Documentation

◆ Point3() [1/5]

template<typename T >
nndeploy::base::Point3< T >::Point3
inline

default constructor

Definition at line 671 of file type.h.

◆ Point3() [2/5]

template<typename T >
nndeploy::base::Point3< T >::Point3 ( x,
y,
z 
)
inline

Definition at line 674 of file type.h.

◆ Point3() [3/5]

template<typename T >
nndeploy::base::Point3< T >::Point3 ( const Point3< T > &  pt)
default

◆ Point3() [4/5]

template<typename T >
nndeploy::base::Point3< T >::Point3 ( Point3< T > &&  pt)
default

◆ Point3() [5/5]

template<typename T >
nndeploy::base::Point3< T >::Point3 ( const Point< T > &  pt)
inlineexplicit

Definition at line 677 of file type.h.

Member Function Documentation

◆ cross()

template<typename T >
Point3< T > nndeploy::base::Point3< T >::cross ( const Point3< T > &  pt) const
inline

cross product of the 2 3D points

Definition at line 698 of file type.h.

◆ ddot()

template<typename T >
double nndeploy::base::Point3< T >::ddot ( const Point3< T > &  pt) const
inline

dot product computed in double-precision arithmetics

Definition at line 692 of file type.h.

◆ dot()

template<typename T >
T nndeploy::base::Point3< T >::dot ( const Point3< T > &  pt) const
inline

dot product

Definition at line 687 of file type.h.

◆ operator Point3< Tp2 >()

template<typename T >
template<typename Tp2 >
nndeploy::base::Point3< T >::operator Point3< Tp2 >
inline

conversion to another data type

Definition at line 681 of file type.h.

◆ operator=() [1/2]

template<typename T >
Point3& nndeploy::base::Point3< T >::operator= ( const Point3< T > &  pt)
default

◆ operator=() [2/2]

template<typename T >
Point3& nndeploy::base::Point3< T >::operator= ( Point3< T > &&  pt)
default

Member Data Documentation

◆ x_

template<typename T >
T nndeploy::base::Point3< T >::x_

x_ coordinate of the 3D point

Definition at line 226 of file type.h.

◆ y_

template<typename T >
T nndeploy::base::Point3< T >::y_

y_ coordinate of the 3D point

Definition at line 227 of file type.h.

◆ z_

template<typename T >
T nndeploy::base::Point3< T >::z_

z_ coordinate of the 3D point

Definition at line 228 of file type.h.


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