CCCoreLib 31 May 2022
CloudCompare Core algorithms
|
4-Tuple structure (templated version) More...
#include <CCGeom.h>
Public Member Functions | |
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. | |
Tuple4Tpl | operator- () const |
Inverse operator. | |
Tuple4Tpl & | operator+= (const Tuple4Tpl &v) |
In-place addition operator. | |
Tuple4Tpl & | operator-= (const Tuple4Tpl &v) |
In-place subtraction operator. | |
Tuple4Tpl & | operator*= (Type v) |
In-place multiplication (by a scalar) operator. | |
Tuple4Tpl & | operator/= (Type v) |
In-place division (by a scalar) operator. | |
Tuple4Tpl | operator+ (const Tuple4Tpl &v) const |
Addition operator. | |
Tuple4Tpl | operator- (const Tuple4Tpl &v) const |
Subtraction operator. | |
Tuple4Tpl | operator* (Type s) const |
Multiplication operator. | |
Tuple4Tpl | operator/ (Type s) const |
Division operator. | |
Public Attributes | |
union { | |
struct { | |
Type x | |
Type y | |
Type z | |
Type w | |
} | |
Type u [4] | |
}; | |
4-Tuple structure (templated version)
|
inline |
Default constructor.
Inits tuple to (0, 0, 0, 0).
|
inline |
Constructor from a triplet of values.
Inits typle to (a,b,c).