|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef DCMATH_LOCVEC2D_H
6 #define DCMATH_LOCVEC2D_H
27 double x()
const {
return m_x; }
29 double y()
const {
return m_y; }
void setY(double y)
Set only y.
Function object to check whether two Segments are sub/super sets or different.
LocVec2D operator*(double v) const
double x() const
Returns the x coordinate of the vector.
std::vector< size_t > vec
void set(const LocVec2D &vec)
Setter function using another vector.
Implementation of 2 dimensional vector class.
void setX(double x)
Set only x.
LocVec2D(double x, double y)
Constructor parsing the coordinates.
LocVec2D operator-(const LocVec2D &lv) const
void set(double x, double y)
Set x & y simultaenously.
std::ostream & operator<<(std::ostream &os, const TrkDriftCircleMath::ClusterId &id)
double operator*(const LocVec2D &lv) const
LocVec2D & operator+=(const LocVec2D &lv)
Incrementation operator.
double y() const
Returns the y coordinate of the vector.
LocVec2D(const LocVec2D &)=default
Default copy & move constructors.
LocVec2D & operator-=(const LocVec2D &lv)
LocVec2D & operator=(const LocVec2D &)=default
Default assignment operators (Equivalent to the setter x)
double cross(const LocVec2D &lv) const
LocVec2D(LocVec2D &&)=default
LocVec2D & operator*=(double v)
LocVec2D & operator/=(double v)
LocVec2D & operator=(LocVec2D &&)=default
LocVec2D operator+(const LocVec2D &lv) const
Plus and minus operators.