LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ThreeVector< T > Class Template Reference

Public Member Functions

 ThreeVector ()
 
 ThreeVector (T x, T y, T z)
 
 ~ThreeVector ()
 
x () const
 
y () const
 
z () const
 
bool operator== (const ThreeVector< T > &right) const
 
ThreeVector< T > & operator= (const ThreeVector< T > &right)=default
 

Private Attributes

_x
 
_y
 
_z
 

Detailed Description

template<typename T>
class ThreeVector< T >

Definition at line 17 of file molecule.C.

Constructor & Destructor Documentation

template<typename T>
ThreeVector< T >::ThreeVector ( )
inline

Definition at line 22 of file molecule.C.

22 :_x(0),_y(0),_z(0){}
template<typename T>
ThreeVector< T >::ThreeVector ( x,
y,
z 
)
inline

Definition at line 23 of file molecule.C.

24  :_x(x),_y(y),_z(z){}
T x() const
Definition: molecule.C:26
T z() const
Definition: molecule.C:34
T y() const
Definition: molecule.C:30
template<typename T>
ThreeVector< T >::~ThreeVector ( )
inline

Definition at line 25 of file molecule.C.

25 {}

Member Function Documentation

template<typename T>
ThreeVector<T>& ThreeVector< T >::operator= ( const ThreeVector< T > &  right)
default
template<typename T>
bool ThreeVector< T >::operator== ( const ThreeVector< T > &  right) const
inline

Definition at line 39 of file molecule.C.

40  {
41  return (_x == right._x) &&
42  (_y == right._y) &&
43  (_z == right._z);
44  }
template<typename T>
T ThreeVector< T >::x ( ) const
inline

Definition at line 26 of file molecule.C.

27  {
28  return _x;
29  }
template<typename T>
T ThreeVector< T >::y ( ) const
inline

Definition at line 30 of file molecule.C.

31  {
32  return _y;
33  }
template<typename T>
T ThreeVector< T >::z ( ) const
inline

Definition at line 34 of file molecule.C.

35  {
36  return _z;
37  }

Member Data Documentation

template<typename T>
T ThreeVector< T >::_x
private

Definition at line 20 of file molecule.C.

Referenced by ThreeVector< double >::operator==().

template<typename T>
T ThreeVector< T >::_y
private

Definition at line 20 of file molecule.C.

Referenced by ThreeVector< double >::operator==().

template<typename T>
T ThreeVector< T >::_z
private

Definition at line 20 of file molecule.C.

Referenced by ThreeVector< double >::operator==().


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