BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
TPoint2D.cxx
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// $Id: TPoint2D.cxx,v 1.4 2010/03/31 09:58:59 liucy Exp $
3//-----------------------------------------------------------------------------
4// Filename : TPoint2D.cc
5// Section : Tracking
6// Owner : Yoshi Iwasaki
7// Email : [email protected]
8//-----------------------------------------------------------------------------
9// Description : A class to represent a point in 2D.
10// See http://bsunsrv1.kek.jp/~yiwasaki/tracking/
11//-----------------------------------------------------------------------------
12
13#define TPOINT2D_INLINE_DEFINE_HERE
14
15#include <iostream>
16
17#include "TrkReco/TPoint2D.h"
18
20 _p[0] = 0.;
21 _p[1] = 0.;
22}
23
24TPoint2D::TPoint2D(double x, double y) {
25 _p[0] = x;
26 _p[1] = y;
27}
28
30 _p[0] = a.x();
31 _p[1] = a.y();
32}
33
35 _p[0] = a.x();
36 _p[1] = a.y();
37}
38
40}
41
42std::ostream &
43operator << (std::ostream & s, const TPoint2D & a) {
44 return s << "(" << a.x() << "," << a.y() << ")";
45}
XmlRpcServer s
Definition: HelloServer.cpp:11
std::ostream & operator<<(std::ostream &s, const TPoint2D &a)
Definition: TPoint2D.cxx:43
A class to represent a point in 2D.
Definition: TPoint2D.h:37
double y(void) const
Definition: TPoint2D.h:94
virtual ~TPoint2D()
Destructor.
Definition: TPoint2D.cxx:39
double x(void) const
Definition: TPoint2D.h:88
TPoint2D()
Constructors.
Definition: TPoint2D.cxx:19
double y[1000]