![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
4-Tuple structure (templated version) More...
#include <CVGeom.h>

Public Member Functions | |
| std::size_t | rows () const |
| std::size_t | dimensions () const |
| Type * | data () |
| const Type * | data () const |
| Tuple4Tpl () | |
| Default constructor. More... | |
| Tuple4Tpl (Type a, Type b, Type c, Type d) | |
| Constructor from a triplet of values. More... | |
| Tuple4Tpl (const Type p[]) | |
| Constructor from an array of 4 elements. More... | |
| Tuple4Tpl (const Eigen::Matrix< float, 4, 1 > &v) | |
| Copy Function. More... | |
| Tuple4Tpl (const Eigen::Matrix< double, 4, 1 > &v) | |
| Tuple4Tpl & | operator= (const Eigen::Matrix< float, 4, 1 > &v) |
| Assignment Function. More... | |
| Tuple4Tpl & | operator= (const Eigen::Matrix< double, 4, 1 > &v) |
| Tuple4Tpl | operator- () const |
| Inverse operator. More... | |
| Tuple4Tpl & | operator+= (const Tuple4Tpl &v) |
| In-place addition operator. More... | |
| Tuple4Tpl & | operator-= (const Tuple4Tpl &v) |
| In-place subtraction operator. More... | |
| Tuple4Tpl & | operator*= (Type v) |
| In-place multiplication (by a scalar) operator. More... | |
| Tuple4Tpl & | operator/= (Type v) |
| In-place division (by a scalar) operator. More... | |
| Tuple4Tpl | operator+ (const Tuple4Tpl &v) const |
| Addition operator. More... | |
| Tuple4Tpl | operator- (const Tuple4Tpl &v) const |
| Subtraction operator. More... | |
| Tuple4Tpl | operator* (Type s) const |
| Multiplication operator. More... | |
| Tuple4Tpl | operator/ (Type s) const |
| Division operator. More... | |
| Type & | operator[] (unsigned i) |
| Direct coordinate access. More... | |
| const Type & | operator[] (unsigned i) const |
| Direct coordinate access (const) More... | |
| Type & | operator() (unsigned i) |
| Direct coordinate access. More... | |
| const Type & | operator() (unsigned i) const |
| Direct coordinate access (const) More... | |
Static Public Member Functions | |
| static Tuple4Tpl | fromArray (const Eigen::Matrix< Type, 4, 1 > &a) |
| Constructor from a Eigen vector. More... | |
| static Eigen::Matrix< Type, 4, 1 > | fromArray (const Tuple4Tpl< float > &a) |
| static Eigen::Matrix< Type, 4, 1 > | fromArray (const Tuple4Tpl< double > &a) |
Public Attributes | |
| union { | |
| struct { | |
| Type x | |
| Type y | |
| Type z | |
| Type w | |
| } | |
| Type u [4] | |
| }; | |
4-Tuple structure (templated version)
Default constructor.
Inits tuple to (0, 0, 0, 0).
Definition at line 667 of file CVGeom.h.
Referenced by Tuple4Tpl< Type >::fromArray(), Tuple4Tpl< Type >::operator*(), Tuple4Tpl< Type >::operator+(), Tuple4Tpl< Type >::operator-(), and Tuple4Tpl< Type >::operator/().
|
inline |
Definition at line 661 of file CVGeom.h.
References Tuple4Tpl< Type >::u.
|
inline |
Definition at line 662 of file CVGeom.h.
References Tuple4Tpl< Type >::u.
|
inline |
Definition at line 659 of file CVGeom.h.
Referenced by Tuple4Tpl< Type >::rows().
|
inlinestatic |
Constructor from a Eigen vector.
Definition at line 679 of file CVGeom.h.
References Tuple4Tpl< Type >::Tuple4Tpl().
|
inline |
|
inline |
Direct coordinate access (const)
Definition at line 776 of file CVGeom.h.
References Tuple4Tpl< Type >::u.
Multiplication operator.
Definition at line 761 of file CVGeom.h.
References Tuple4Tpl< Type >::Tuple4Tpl(), Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
In-place multiplication (by a scalar) operator.
Definition at line 737 of file CVGeom.h.
References Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
|
inline |
Addition operator.
Definition at line 753 of file CVGeom.h.
References Tuple4Tpl< Type >::Tuple4Tpl(), Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
|
inline |
In-place addition operator.
Definition at line 721 of file CVGeom.h.
References Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
Inverse operator.
Definition at line 716 of file CVGeom.h.
References Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
|
inline |
Subtraction operator.
Definition at line 757 of file CVGeom.h.
References Tuple4Tpl< Type >::Tuple4Tpl(), Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
|
inline |
In-place subtraction operator.
Definition at line 729 of file CVGeom.h.
References Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
Division operator.
Definition at line 765 of file CVGeom.h.
References Tuple4Tpl< Type >::Tuple4Tpl(), Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
In-place division (by a scalar) operator.
Definition at line 745 of file CVGeom.h.
References Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
|
inline |
Definition at line 707 of file CVGeom.h.
References Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
|
inline |
Assignment Function.
Definition at line 700 of file CVGeom.h.
References Tuple4Tpl< Type >::w, Tuple4Tpl< Type >::x, Tuple4Tpl< Type >::y, and Tuple4Tpl< Type >::z.
|
inline |
|
inline |
Direct coordinate access (const)
Definition at line 772 of file CVGeom.h.
References Tuple4Tpl< Type >::u.
|
inline |
Definition at line 658 of file CVGeom.h.
References Tuple4Tpl< Type >::dimensions().
| union { ... } |
| Type Tuple4Tpl< Type >::u[4] |
Definition at line 655 of file CVGeom.h.
Referenced by Tuple4Tpl< Type >::data(), Tuple4Tpl< Type >::operator()(), and Tuple4Tpl< Type >::operator[]().
| Type Tuple4Tpl< Type >::w |
Definition at line 653 of file CVGeom.h.
Referenced by ccGLMatrixTpl< T >::applyW(), ccGLMatrixTpl< T >::applyX(), ccGLMatrixTpl< T >::applyY(), ccGLMatrixTpl< T >::applyZ(), Tuple4Tpl< Type >::operator*(), Tuple4Tpl< Type >::operator*=(), Tuple4Tpl< Type >::operator+(), Tuple4Tpl< Type >::operator+=(), Tuple4Tpl< Type >::operator-(), Tuple4Tpl< Type >::operator-=(), Tuple4Tpl< Type >::operator/(), Tuple4Tpl< Type >::operator/=(), Tuple4Tpl< Type >::operator=(), ecvGenericDisplayTools::Project(), ccGLMatrixTpl< T >::QuaternionToRotationMatrix(), and ccGLMatrixTpl< T >::setColumn().
| Type Tuple4Tpl< Type >::x |
Definition at line 653 of file CVGeom.h.
Referenced by ccGLMatrixTpl< T >::applyW(), ccGLMatrixTpl< T >::applyX(), ccGLMatrixTpl< T >::applyY(), ccGLMatrixTpl< T >::applyZ(), Tuple4Tpl< Type >::operator*(), Tuple4Tpl< Type >::operator*=(), Tuple4Tpl< Type >::operator+(), Tuple4Tpl< Type >::operator+=(), Tuple4Tpl< Type >::operator-(), Tuple4Tpl< Type >::operator-=(), Tuple4Tpl< Type >::operator/(), Tuple4Tpl< Type >::operator/=(), Tuple4Tpl< Type >::operator=(), ecvGenericDisplayTools::Project(), ccGLMatrixTpl< T >::QuaternionToRotationMatrix(), and ccGLMatrixTpl< T >::setColumn().
| Type Tuple4Tpl< Type >::y |
Definition at line 653 of file CVGeom.h.
Referenced by ccGLMatrixTpl< T >::applyW(), ccGLMatrixTpl< T >::applyX(), ccGLMatrixTpl< T >::applyY(), ccGLMatrixTpl< T >::applyZ(), Tuple4Tpl< Type >::operator*(), Tuple4Tpl< Type >::operator*=(), Tuple4Tpl< Type >::operator+(), Tuple4Tpl< Type >::operator+=(), Tuple4Tpl< Type >::operator-(), Tuple4Tpl< Type >::operator-=(), Tuple4Tpl< Type >::operator/(), Tuple4Tpl< Type >::operator/=(), Tuple4Tpl< Type >::operator=(), ecvGenericDisplayTools::Project(), ccGLMatrixTpl< T >::QuaternionToRotationMatrix(), and ccGLMatrixTpl< T >::setColumn().
| Type Tuple4Tpl< Type >::z |
Definition at line 653 of file CVGeom.h.
Referenced by ccGLMatrixTpl< T >::applyW(), ccGLMatrixTpl< T >::applyX(), ccGLMatrixTpl< T >::applyY(), ccGLMatrixTpl< T >::applyZ(), Tuple4Tpl< Type >::operator*(), Tuple4Tpl< Type >::operator*=(), Tuple4Tpl< Type >::operator+(), Tuple4Tpl< Type >::operator+=(), Tuple4Tpl< Type >::operator-(), Tuple4Tpl< Type >::operator-=(), Tuple4Tpl< Type >::operator/(), Tuple4Tpl< Type >::operator/=(), Tuple4Tpl< Type >::operator=(), ecvGenericDisplayTools::Project(), ccGLMatrixTpl< T >::QuaternionToRotationMatrix(), and ccGLMatrixTpl< T >::setColumn().