libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
crn::Point3D< T > Class Template Reference

A 3D point class. More...

#include <CRNPoint3D.h>

+ Collaboration diagram for crn::Point3D< T >:

Classes

class  Sorter
 Functor to sort rectangles regarding directions. More...
 

Public Types

using value_type = T
 The value type. More...
 

Public Member Functions

 Point3D ()
 Default constructor (sets coordinates to 0) More...
 
 Point3D (T x, T y, T z)
 Constructor from values. More...
 
 Point3D (const Point3D &)=default
 
 Point3D (Point3D &&)=default
 
virtual ~Point3D ()
 Destructor. More...
 
Point3Doperator= (const Point3D &)=default
 
Point3Doperator= (Point3D &&)=default
 
bool operator== (const Point3D &p) const noexcept
 Equality. More...
 

Public Attributes

value_type X
 
value_type Y
 
value_type Z
 

Detailed Description

template<typename T>
class crn::Point3D< T >

A 3D point class.

Convenience 3D point class.

Author
Jean DUONG
Date
February 2013
Version
0.1

Definition at line 40 of file CRNPoint3D.h.

Member Typedef Documentation

template<typename T >
using crn::Point3D< T >::value_type = T

The value type.

Definition at line 44 of file CRNPoint3D.h.

Constructor & Destructor Documentation

template<typename T >
crn::Point3D< T >::Point3D ( )
inline

Default constructor (sets coordinates to 0)

Definition at line 47 of file CRNPoint3D.h.

template<typename T >
crn::Point3D< T >::Point3D ( x,
y,
z 
)
inline

Constructor from values.

Definition at line 49 of file CRNPoint3D.h.

template<typename T >
crn::Point3D< T >::Point3D ( const Point3D< T > &  )
default
template<typename T >
crn::Point3D< T >::Point3D ( Point3D< T > &&  )
default
template<typename T >
virtual crn::Point3D< T >::~Point3D ( )
inlinevirtual

Destructor.

Definition at line 53 of file CRNPoint3D.h.

Member Function Documentation

template<typename T >
Point3D& crn::Point3D< T >::operator= ( const Point3D< T > &  )
default
template<typename T >
Point3D& crn::Point3D< T >::operator= ( Point3D< T > &&  )
default
template<typename T >
bool crn::Point3D< T >::operator== ( const Point3D< T > &  p) const
inlinenoexcept

Equality.

Definition at line 60 of file CRNPoint3D.h.

Member Data Documentation

template<typename T >
value_type crn::Point3D< T >::X

Definition at line 55 of file CRNPoint3D.h.

template<typename T >
value_type crn::Point3D< T >::Y

Definition at line 55 of file CRNPoint3D.h.

template<typename T >
value_type crn::Point3D< T >::Z

The coordinates

Definition at line 55 of file CRNPoint3D.h.


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