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