Belle II Software development
Vector2D.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include <tracking/trackFindingCDC/geometry/Vector2D.h>
9
10#include <sstream>
11#include <ostream>
12
13using namespace Belle2;
14using namespace TrackFindingCDC;
15
16std::ostream& TrackFindingCDC::operator<<(std::ostream& output, const Vector2D& vector2D)
17{
18 output << "Vector2D(" << vector2D.x() << "," << vector2D.y() << ")";
19 return output;
20}
21
22std::string Vector2D::__str__() const
23{
24 std::stringstream sstream;
25 sstream << *this;
26 return sstream.str();
27}
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
Definition: Vector2D.h:32
std::string __str__() const
Output operator for python.
Definition: Vector2D.cc:22
double x() const
Getter for the x coordinate.
Definition: Vector2D.h:595
double y() const
Getter for the y coordinate.
Definition: Vector2D.h:605
Abstract base class for different kinds of events.