ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Point3D< Real > Class Template Reference

#include <Geometry.h>

Public Member Functions

 Point3D (void)
 
 Point3D (Real v)
 
template<class _Real >
 Point3D (_Real v0, _Real v1, _Real v2)
 
template<class _Real >
 Point3D (const Point3D< _Real > &p)
 
Real & operator[] (int i)
 
const Real & operator[] (int i) const
 
Point3D operator- (void) const
 
template<class _Real >
Point3Doperator+= (Point3D< _Real > p)
 
template<class _Real >
Point3D operator+ (Point3D< _Real > p) const
 
template<class _Real >
Point3Doperator*= (_Real r)
 
template<class _Real >
Point3D operator* (_Real r) const
 
template<class _Real >
Point3Doperator-= (Point3D< _Real > p)
 
template<class _Real >
Point3D operator- (Point3D< _Real > p) const
 
template<class _Real >
Point3Doperator/= (_Real r)
 
template<class _Real >
Point3D operator/ (_Real r) const
 
 Point3D (T x=0., T y=0., T z=0.)
 

Static Public Member Functions

static Real Dot (const Point3D< Real > &p1, const Point3D< Real > &p2)
 
template<class Real1 , class Real2 >
static Real Dot (const Point3D< Real1 > &p1, const Point3D< Real2 > &p2)
 

Public Attributes

Real coords [3]
 
x
 
y
 
z
 

Detailed Description

template<class Real>
class Point3D< Real >

Definition at line 42 of file Geometry.h.

Constructor & Destructor Documentation

◆ Point3D() [1/5]

template<class Real >
Point3D< Real >::Point3D ( void  )
inline

Definition at line 45 of file Geometry.h.

References Point3D< Real >::coords.

◆ Point3D() [2/5]

template<class Real >
Point3D< Real >::Point3D ( Real  v)
inline

Definition at line 46 of file Geometry.h.

References Point3D< Real >::coords.

◆ Point3D() [3/5]

template<class Real >
template<class _Real >
Point3D< Real >::Point3D ( _Real  v0,
_Real  v1,
_Real  v2 
)
inline

Definition at line 47 of file Geometry.h.

References Point3D< Real >::coords.

◆ Point3D() [4/5]

template<class Real >
template<class _Real >
Point3D< Real >::Point3D ( const Point3D< _Real > &  p)
inline

Definition at line 48 of file Geometry.h.

References Point3D< Real >::coords.

◆ Point3D() [5/5]

template<class Real >
Point3D< Real >::Point3D ( x = 0.,
y = 0.,
z = 0. 
)
inline

Definition at line 120 of file Common.h.

References Point3D< Real >::x, Point3D< Real >::y, and Point3D< Real >::z.

Member Function Documentation

◆ Dot() [1/2]

template<class Real >
static Real Point3D< Real >::Dot ( const Point3D< Real > &  p1,
const Point3D< Real > &  p2 
)
inlinestatic

Definition at line 63 of file Geometry.h.

References Point3D< Real >::coords.

◆ Dot() [2/2]

template<class Real >
template<class Real1 , class Real2 >
static Real Point3D< Real >::Dot ( const Point3D< Real1 > &  p1,
const Point3D< Real2 > &  p2 
)
inlinestatic

Definition at line 65 of file Geometry.h.

References Point3D< Real >::coords.

◆ operator*()

template<class Real >
template<class _Real >
Point3D Point3D< Real >::operator* ( _Real  r) const
inline

Definition at line 56 of file Geometry.h.

References Point3D< Real >::coords.

◆ operator*=()

template<class Real >
template<class _Real >
Point3D& Point3D< Real >::operator*= ( _Real  r)
inline

Definition at line 55 of file Geometry.h.

References Point3D< Real >::coords.

◆ operator+()

template<class Real >
template<class _Real >
Point3D Point3D< Real >::operator+ ( Point3D< _Real >  p) const
inline

Definition at line 54 of file Geometry.h.

References Point3D< Real >::coords.

◆ operator+=()

template<class Real >
template<class _Real >
Point3D& Point3D< Real >::operator+= ( Point3D< _Real >  p)
inline

Definition at line 53 of file Geometry.h.

References Point3D< Real >::coords.

◆ operator-() [1/2]

template<class Real >
template<class _Real >
Point3D Point3D< Real >::operator- ( Point3D< _Real >  p) const
inline

Definition at line 59 of file Geometry.h.

◆ operator-() [2/2]

template<class Real >
Point3D Point3D< Real >::operator- ( void  ) const
inline

Definition at line 51 of file Geometry.h.

References Point3D< Real >::coords.

◆ operator-=()

template<class Real >
template<class _Real >
Point3D& Point3D< Real >::operator-= ( Point3D< _Real >  p)
inline

Definition at line 58 of file Geometry.h.

◆ operator/()

template<class Real >
template<class _Real >
Point3D Point3D< Real >::operator/ ( _Real  r) const
inline

Definition at line 61 of file Geometry.h.

◆ operator/=()

template<class Real >
template<class _Real >
Point3D& Point3D< Real >::operator/= ( _Real  r)
inline

Definition at line 60 of file Geometry.h.

◆ operator[]() [1/2]

template<class Real >
Real& Point3D< Real >::operator[] ( int  i)
inline

Definition at line 49 of file Geometry.h.

References Point3D< Real >::coords.

◆ operator[]() [2/2]

template<class Real >
const Real& Point3D< Real >::operator[] ( int  i) const
inline

Definition at line 50 of file Geometry.h.

References Point3D< Real >::coords.

Member Data Documentation

◆ coords

◆ x

template<class Real >
T Point3D< Real >::x

Definition at line 119 of file Common.h.

Referenced by lessPoint3D< T >::operator()(), and Point3D< Real >::Point3D().

◆ y

template<class Real >
T Point3D< Real >::y

Definition at line 119 of file Common.h.

Referenced by lessPoint3D< T >::operator()(), and Point3D< Real >::Point3D().

◆ z

template<class Real >
T Point3D< Real >::z

Definition at line 119 of file Common.h.

Referenced by lessPoint3D< T >::operator()(), and Point3D< Real >::Point3D().


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