|
| DisplacementVector2D () |
| Default constructor. More...
|
|
template<class OtherCoords > |
| DisplacementVector2D (const DisplacementVector2D< OtherCoords, Tag > &v) |
| Construct from a displacement vector expressed in different coordinates, or using a different Scalar type, but with same coordinate system tag. More...
|
|
template<class ForeignVector > |
| DisplacementVector2D (const ForeignVector &v) |
| Construct from a foreign 2D vector type, for example, Hep2Vector Precondition: v must implement methods x() and y() More...
|
|
template<class OtherCoords > |
| DisplacementVector2D (const PositionVector2D< OtherCoords, Tag > &p) |
| Construct from a position vector expressed in different coordinates but with the same coordinate system tag. More...
|
|
| DisplacementVector2D (Scalar a, Scalar b) |
| Construct from three values of type Scalar. More...
|
|
CoordSystem | Coordinates () const |
| Retrieve a copy of the coordinates object. More...
|
|
template<class OtherCoords > |
Scalar | Dot (const DisplacementVector2D< OtherCoords, Tag > &v) const |
| Return the scalar (dot) product of two displacement vectors. More...
|
|
template<class OtherVector > |
Scalar | Dot (const OtherVector &v) const |
| Return the scalar (dot) product of two vectors. More...
|
|
void | GetCoordinates (Scalar &a, Scalar &b) const |
| get internal data into 2 Scalar numbers. More...
|
|
Scalar | Mag2 () const |
| Magnitute squared ( r^2 in spherical coordinate) More...
|
|
Scalar | mag2 () const |
|
bool | operator!= (const DisplacementVector2D &rhs) const |
|
DisplacementVector2D | operator* (Scalar a) const |
| Multiply a vector by a real number. More...
|
|
DisplacementVector2D & | operator*= (Scalar a) |
| multiply this vector by a scalar quantity More...
|
|
DisplacementVector2D | operator+ () const |
| Positive of the vector, return itself. More...
|
|
template<class OtherCoords > |
DisplacementVector2D & | operator+= (const DisplacementVector2D< OtherCoords, Tag > &v) |
| Self Addition with a displacement vector. More...
|
|
DisplacementVector2D | operator- () const |
| Negative of the vector. More...
|
|
template<class OtherCoords > |
DisplacementVector2D & | operator-= (const DisplacementVector2D< OtherCoords, Tag > &v) |
| Self Difference with a displacement vector. More...
|
|
DisplacementVector2D | operator/ (Scalar a) const |
| Division of a vector with a real number. More...
|
|
DisplacementVector2D & | operator/= (Scalar a) |
| divide this vector by a scalar quantity More...
|
|
template<class OtherCoords > |
DisplacementVector2D & | operator= (const DisplacementVector2D< OtherCoords, Tag > &v) |
| Assignment operator from a displacement vector of arbitrary type. More...
|
|
template<class ForeignVector > |
DisplacementVector2D & | operator= (const ForeignVector &v) |
| Assignment from a foreign 2D vector type, for example, Hep2Vector Precondition: v must implement methods x() and y() More...
|
|
template<class OtherCoords > |
DisplacementVector2D & | operator= (const PositionVector2D< OtherCoords, Tag > &rhs) |
| Assignment operator from a position vector (not necessarily efficient unless one or the other is Cartesian) More...
|
|
bool | operator== (const DisplacementVector2D &rhs) const |
| Exact equality. More...
|
|
Scalar | Phi () const |
| Polar phi, converting if necessary from internal coordinate system. More...
|
|
Scalar | phi () const |
|
Scalar | R () const |
| Polar R, converting if necessary from internal coordinate system. More...
|
|
Scalar | r () const |
|
void | Rotate (Scalar angle) |
| Rotate by an angle. More...
|
|
DisplacementVector2D< CoordSystem, Tag > & | SetCoordinates (Scalar a, Scalar b) |
| Set internal data based on 2 Scalar numbers. More...
|
|
DisplacementVector2D< CoordSystem, Tag > & | SetPhi (Scalar ang) |
| Change Phi - Polar2D coordinates. More...
|
|
DisplacementVector2D< CoordSystem, Tag > & | SetR (Scalar a) |
| Change R - Polar2D coordinates only. More...
|
|
DisplacementVector2D< CoordSystem, Tag > & | SetX (Scalar a) |
| Change X - Cartesian2D coordinates only. More...
|
|
DisplacementVector2D< CoordSystem, Tag > & | SetXY (Scalar a, Scalar b) |
| set the values of the vector from the cartesian components (x,y) (if the vector is held in polar coordinates, then (x, y) are converted to that form) More...
|
|
DisplacementVector2D< CoordSystem, Tag > & | SetY (Scalar a) |
| Change Y - Cartesian2D coordinates only. More...
|
|
DisplacementVector2D | Unit () const |
| return unit vector parallel to this More...
|
|
DisplacementVector2D | unit () const |
|
Scalar | X () const |
| Cartesian X, converting if necessary from internal coordinate system. More...
|
|
Scalar | x () const |
|
Scalar | Y () const |
| Cartesian Y, converting if necessary from internal coordinate system. More...
|
|
Scalar | y () const |
|