CCCoreLib 31 May 2022
CloudCompare Core algorithms
Public Member Functions | Public Attributes | List of all members
Tuple4Tpl< Type > Class Template Reference

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.
 
Tuple4Tploperator+= (const Tuple4Tpl &v)
 In-place addition operator.
 
Tuple4Tploperator-= (const Tuple4Tpl &v)
 In-place subtraction operator.
 
Tuple4Tploperator*= (Type v)
 In-place multiplication (by a scalar) operator.
 
Tuple4Tploperator/= (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]
 
}; 
 

Detailed Description

template<class Type>
class Tuple4Tpl< Type >

4-Tuple structure (templated version)

Constructor & Destructor Documentation

◆ Tuple4Tpl() [1/2]

template<class Type >
Tuple4Tpl< Type >::Tuple4Tpl ( )
inline

Default constructor.

Inits tuple to (0, 0, 0, 0).

◆ Tuple4Tpl() [2/2]

template<class Type >
Tuple4Tpl< Type >::Tuple4Tpl ( Type  a,
Type  b,
Type  c,
Type  d 
)
inline

Constructor from a triplet of values.

Inits typle to (a,b,c).


The documentation for this class was generated from the following file: