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

3-Tuple structure (templated version) More...

#include <CCGeom.h>

Inheritance diagram for Tuple3Tpl< Type >:
Inheritance graph
[legend]

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

Detailed Description

template<class Type>
class Tuple3Tpl< Type >

3-Tuple structure (templated version)

Constructor & Destructor Documentation

◆ Tuple3Tpl() [1/2]

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

Default constructor.

Inits tuple to (0, 0, 0).

◆ Tuple3Tpl() [2/2]

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

Constructor from a triplet of values.

Inits typle to (a,b,c).


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