Jetson Linux API Reference32.6.1 Release |
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.
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 | |
T | m_data [N] |
|
inline |
|
inline |
|
inline |
Definition at line 680 of file Types.h.
References Argus::Point3D< T >::x(), Argus::Point3D< T >::y(), and Argus::Point3D< T >::z().
|
inline |
Definition at line 685 of file Types.h.
References Argus::Point3D< T >::x(), Argus::Point3D< T >::y(), and Argus::Point3D< T >::z().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Multiplies every element in the tuple by a single value.
Definition at line 522 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
|
inlineinherited |
Adds every element of another tuple to the elements of this tuple.
Definition at line 506 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
|
inlineinherited |
Subtracts every element of another tuple from the elements of this tuple.
Definition at line 514 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
|
inlineinherited |
Divides every element in the tuple by a single value.
Definition at line 530 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
Returns true when every element in the two tuples are identical.
Definition at line 494 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
Definition at line 561 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
Definition at line 562 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlinestaticinherited |
|
inline |
Definition at line 692 of file Types.h.
References Argus::COORDINATE_X.
Referenced by Argus::Point3D< T >::Point3D().
|
inline |
Definition at line 693 of file Types.h.
References Argus::COORDINATE_X.
|
inline |
Definition at line 694 of file Types.h.
References Argus::COORDINATE_Y.
Referenced by Argus::Point3D< T >::Point3D().
|
inline |
Definition at line 695 of file Types.h.
References Argus::COORDINATE_Y.
|
inline |
Definition at line 696 of file Types.h.
References Argus::COORDINATE_Z.
Referenced by Argus::Point3D< T >::Point3D().
|
inline |
Definition at line 697 of file Types.h.
References Argus::COORDINATE_Z.
|
protectedinherited |