Jetson Linux API Reference

32.5 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Argus::Point3D< T > Class Template Reference

Detailed Description

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

Point3D template class.

This is a Tuple specialization containing 3 elements corresponding to the x, y and z coordinates of a 3D point. Values can be accessed using the named methods or subscript indexing using the Argus::Coordinate enum.

Definition at line 662 of file Types.h.

Inheritance diagram for Argus::Point3D< T >:
Collaboration diagram for Argus::Point3D< T >:

Public Member Functions

 Point3D ()
 
 Point3D (const Tuple< COORDINATE_3D_COUNT, T > &other)
 
 Point3D (T init)
 
 Point3D (T _x, T _y, T _z)
 
T & x ()
 
const T & x () const
 
T & y ()
 
const T & y () const
 
T & z ()
 
const T & z () const
 
bool operator== (const Tuple< N, T > &rhs) const
 Returns true when every element in the two tuples are identical. More...
 
bool operator!= (const Tuple< N, T > &rhs) const
 Returns true if there are any differences between the two tuples. More...
 
Tuple< N, T > & operator+= (const Tuple< N, T > &rhs)
 Adds every element of another tuple to the elements of this tuple. More...
 
Tuple< N, T > & operator-= (const Tuple< N, T > &rhs)
 Subtracts every element of another tuple from the elements of this tuple. More...
 
Tuple< N, T > & operator*= (const T &rhs)
 Multiplies every element in the tuple by a single value. More...
 
Tuple< N, T > & operator/= (const T &rhs)
 Divides every element in the tuple by a single value. More...
 
const Tuple< N, T > operator+ (const Tuple< N, T > &rhs) const
 Returns the result of adding another tuple to this tuple. More...
 
const Tuple< N, T > operator- (const Tuple< N, T > &rhs) const
 Returns the result of subtracting another tuple from this tuple. More...
 
const Tuple< N, T > operator* (const T &rhs) const
 Returns the result of multiplying this tuple by a single value. More...
 
const Tuple< N, T > operator/ (const T &rhs) const
 Returns the result of dividing this tuple by a single value. More...
 
T & operator[] (unsigned int i)
 
const T & operator[] (unsigned int i) const
 

Static Public Member Functions

static unsigned int tupleSize ()
 Returns the number of elements in the tuple. More...
 

Protected Attributes

m_data [N]
 

Constructor & Destructor Documentation

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

Definition at line 665 of file Types.h.

template<typename T >
Argus::Point3D< T >::Point3D ( const Tuple< COORDINATE_3D_COUNT, T > &  other)
inline

Definition at line 666 of file Types.h.

template<typename T >
Argus::Point3D< T >::Point3D ( init)
inline
template<typename T >
Argus::Point3D< T >::Point3D ( _x,
_y,
_z 
)
inline

Member Function Documentation

bool Argus::Tuple< N, T >::operator!= ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns true if there are any differences between the two tuples.

Definition at line 488 of file Types.h.

const Tuple<N, T> Argus::Tuple< N, T >::operator* ( const T &  rhs) const
inlineinherited

Returns the result of multiplying this tuple by a single value.

Definition at line 538 of file Types.h.

Tuple<N, T>& Argus::Tuple< N, T >::operator*= ( const T &  rhs)
inlineinherited

Multiplies every element in the tuple by a single value.

Definition at line 510 of file Types.h.

References Argus::Tuple< N, T >::m_data.

const Tuple<N, T> Argus::Tuple< N, T >::operator+ ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns the result of adding another tuple to this tuple.

Definition at line 526 of file Types.h.

Tuple<N, T>& Argus::Tuple< N, T >::operator+= ( const Tuple< N, T > &  rhs)
inlineinherited

Adds every element of another tuple to the elements of this tuple.

Definition at line 494 of file Types.h.

References Argus::Tuple< N, T >::m_data.

const Tuple<N, T> Argus::Tuple< N, T >::operator- ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns the result of subtracting another tuple from this tuple.

Definition at line 532 of file Types.h.

Tuple<N, T>& Argus::Tuple< N, T >::operator-= ( const Tuple< N, T > &  rhs)
inlineinherited

Subtracts every element of another tuple from the elements of this tuple.

Definition at line 502 of file Types.h.

References Argus::Tuple< N, T >::m_data.

const Tuple<N, T> Argus::Tuple< N, T >::operator/ ( const T &  rhs) const
inlineinherited

Returns the result of dividing this tuple by a single value.

Definition at line 544 of file Types.h.

Tuple<N, T>& Argus::Tuple< N, T >::operator/= ( const T &  rhs)
inlineinherited

Divides every element in the tuple by a single value.

Definition at line 518 of file Types.h.

References Argus::Tuple< N, T >::m_data.

bool Argus::Tuple< N, T >::operator== ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns true when every element in the two tuples are identical.

Definition at line 482 of file Types.h.

References Argus::Tuple< N, T >::m_data.

T& Argus::Tuple< N, T >::operator[] ( unsigned int  i)
inlineinherited

Definition at line 549 of file Types.h.

References Argus::Tuple< N, T >::m_data.

const T& Argus::Tuple< N, T >::operator[] ( unsigned int  i) const
inlineinherited

Definition at line 550 of file Types.h.

References Argus::Tuple< N, T >::m_data.

static unsigned int Argus::Tuple< N, T >::tupleSize ( )
inlinestaticinherited

Returns the number of elements in the tuple.

Definition at line 553 of file Types.h.

template<typename T >
T& Argus::Point3D< T >::x ( )
inline

Definition at line 680 of file Types.h.

References Argus::COORDINATE_X.

Referenced by Argus::Point3D< T >::Point3D().

template<typename T >
const T& Argus::Point3D< T >::x ( ) const
inline

Definition at line 681 of file Types.h.

References Argus::COORDINATE_X.

template<typename T >
T& Argus::Point3D< T >::y ( )
inline

Definition at line 682 of file Types.h.

References Argus::COORDINATE_Y.

Referenced by Argus::Point3D< T >::Point3D().

template<typename T >
const T& Argus::Point3D< T >::y ( ) const
inline

Definition at line 683 of file Types.h.

References Argus::COORDINATE_Y.

template<typename T >
T& Argus::Point3D< T >::z ( )
inline

Definition at line 684 of file Types.h.

References Argus::COORDINATE_Z.

Referenced by Argus::Point3D< T >::Point3D().

template<typename T >
const T& Argus::Point3D< T >::z ( ) const
inline

Definition at line 685 of file Types.h.

References Argus::COORDINATE_Z.

Field Documentation

T Argus::Tuple< N, T >::m_data[N]
protectedinherited

Definition at line 556 of file Types.h.


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