![]() |
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).
Referenced by Tuple4Tpl< double >::fromArray(), Tuple4Tpl< double >::operator*(), Tuple4Tpl< double >::operator+(), Tuple4Tpl< double >::operator-(), and Tuple4Tpl< double >::operator/().
Constructor from a triplet of values.
Inits typle to (a,b,c).
Constructor from an array of 4 elements.
Copy Function.
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by Tuple4Tpl< double >::rows().
|
inlinestatic |
Constructor from a Eigen vector.
|
inlinestatic |
|
inlinestatic |
|
inline |
Direct coordinate access.
|
inline |
Direct coordinate access (const)
Multiplication operator.
In-place multiplication (by a scalar) operator.
|
inline |
Addition operator.
|
inline |
In-place addition operator.
|
inline |
Subtraction operator.
|
inline |
In-place subtraction operator.
Division operator.
In-place division (by a scalar) operator.
|
inline |
|
inline |
Assignment Function.
|
inline |
Direct coordinate access.
|
inline |
Direct coordinate access (const)
|
inline |
| union { ... } |
| Type Tuple4Tpl< Type >::u[4] |
| Type Tuple4Tpl< Type >::w |
Referenced by ccGLMatrixTpl< float >::applyW(), ccGLMatrixTpl< float >::applyX(), ccGLMatrixTpl< float >::applyY(), ccGLMatrixTpl< float >::applyZ(), PointCloudLODVisibilityFlagger::flag(), Tuple4Tpl< double >::operator*(), Tuple4Tpl< double >::operator*=(), Tuple4Tpl< double >::operator+(), Tuple4Tpl< double >::operator+=(), Tuple4Tpl< double >::operator-(), Tuple4Tpl< double >::operator-=(), Tuple4Tpl< double >::operator/(), Tuple4Tpl< double >::operator/=(), Tuple4Tpl< double >::operator=(), ecvGenericDisplayTools::Project(), ccGLMatrixTpl< float >::QuaternionToRotationMatrix(), ccGLMatrixTpl< float >::setColumn(), and ccClipBox::update().
| Type Tuple4Tpl< Type >::x |
Referenced by ccGLMatrixTpl< float >::applyW(), ccGLMatrixTpl< float >::applyX(), ccGLMatrixTpl< float >::applyY(), ccGLMatrixTpl< float >::applyZ(), PointCloudLODVisibilityFlagger::flag(), Tuple4Tpl< double >::operator*(), Tuple4Tpl< double >::operator*=(), Tuple4Tpl< double >::operator+(), Tuple4Tpl< double >::operator+=(), Tuple4Tpl< double >::operator-(), Tuple4Tpl< double >::operator-=(), Tuple4Tpl< double >::operator/(), Tuple4Tpl< double >::operator/=(), Tuple4Tpl< double >::operator=(), ecvGenericDisplayTools::Project(), ccGLMatrixTpl< float >::QuaternionToRotationMatrix(), ccGLMatrixTpl< float >::setColumn(), and ccClipBox::update().
| Type Tuple4Tpl< Type >::y |
Referenced by ccGLMatrixTpl< float >::applyW(), ccGLMatrixTpl< float >::applyX(), ccGLMatrixTpl< float >::applyY(), ccGLMatrixTpl< float >::applyZ(), PointCloudLODVisibilityFlagger::flag(), Tuple4Tpl< double >::operator*(), Tuple4Tpl< double >::operator*=(), Tuple4Tpl< double >::operator+(), Tuple4Tpl< double >::operator+=(), Tuple4Tpl< double >::operator-(), Tuple4Tpl< double >::operator-=(), Tuple4Tpl< double >::operator/(), Tuple4Tpl< double >::operator/=(), Tuple4Tpl< double >::operator=(), ecvGenericDisplayTools::Project(), ccGLMatrixTpl< float >::QuaternionToRotationMatrix(), ccGLMatrixTpl< float >::setColumn(), and ccClipBox::update().
| Type Tuple4Tpl< Type >::z |
Referenced by ccGLMatrixTpl< float >::applyW(), ccGLMatrixTpl< float >::applyX(), ccGLMatrixTpl< float >::applyY(), ccGLMatrixTpl< float >::applyZ(), PointCloudLODVisibilityFlagger::flag(), Tuple4Tpl< double >::operator*(), Tuple4Tpl< double >::operator*=(), Tuple4Tpl< double >::operator+(), Tuple4Tpl< double >::operator+=(), Tuple4Tpl< double >::operator-(), Tuple4Tpl< double >::operator-=(), Tuple4Tpl< double >::operator/(), Tuple4Tpl< double >::operator/=(), Tuple4Tpl< double >::operator=(), ecvGenericDisplayTools::Project(), ccGLMatrixTpl< float >::QuaternionToRotationMatrix(), ccGLMatrixTpl< float >::setColumn(), and ccClipBox::update().