SRVector3D.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRVector3D.cxx
3 // \author Christopher Backhouse - bckhouse@caltech.edu
4 ////////////////////////////////////////////////////////////////////////
5 
7 
8 namespace caf
9 {
11  x(std::numeric_limits<float>::signaling_NaN()),
12  y(std::numeric_limits<float>::signaling_NaN()),
13  z(std::numeric_limits<float>::signaling_NaN())
14  {
15  }
16 
17  SRVector3D::SRVector3D(float _x, float _y, float _z) :
18  x(_x), y(_y), z(_z)
19  {
20  }
21 
22  SRVector3D::SRVector3D(const TVector3& v) :
23  x(v.X()), y(v.Y()), z(v.Z())
24  {
25  }
26 
28  {
29  }
30 
31  void SRVector3D::SetXYZ(float _x, float _y, float _z)
32  {
33  x = _x;
34  y = _y;
35  z = _z;
36  }
37 
38  SRVector3D::operator TVector3() const
39  {
40  return TVector3(x, y, z);
41  }
42 
43 } // end namespace caf
44 ////////////////////////////////////////////////////////////////////////
void SetXYZ(float x, float y, float z)
Definition: SRVector3D.cxx:31
float Y() const
Definition: SRVector3D.h:33
float X() const
Definition: SRVector3D.h:32
virtual ~SRVector3D()
Definition: SRVector3D.cxx:27
float Z() const
Definition: SRVector3D.h:34
z
Definition: test.py:28
This module creates Common Analysis Files.
Definition: FileReducer.h:10