Class describing a 2D cartesian coordinate system (x, y coordinates)
Definition at line 44 of file Cartesian2D.h.
Public Types | |
| typedef T | Scalar | 
Public Member Functions | |
| constexpr | Cartesian2D () noexcept=default | 
| Default constructor with x=y=0.   | |
| template<class CoordSystem > | |
| constexpr | Cartesian2D (const CoordSystem &v) | 
| Construct from any Vector or coordinate system implementing X() and Y()   | |
| template<class T2 > | |
| Cartesian2D (const Polar2D< T2 > &v) | |
| Cartesian2D (Scalar xx, Scalar yy) | |
| Constructor from x,y coordinates.   | |
| void | GetCoordinates (Scalar &xx, Scalar &yy) const | 
| get internal data into 2 Scalar numbers   | |
| Scalar | Mag2 () const | 
| void | Negate () | 
| negate the vector   | |
| bool | operator!= (const Cartesian2D &rhs) const | 
| template<class CoordSystem > | |
| Cartesian2D & | operator= (const CoordSystem &v) | 
| Assignment from any class implementing x(),y() (can assign from any coordinate system)   | |
| template<class T2 > | |
| Cartesian2D & | operator= (const Polar2D< T2 > &v) | 
| bool | operator== (const Cartesian2D &rhs) const | 
| Exact equality.   | |
| Scalar | Phi () const | 
| Scalar | R () const | 
| void | Rotate (Scalar angle) | 
| rotate by an angle   | |
| void | Scale (Scalar a) | 
| scale the vector by a scalar quantity a   | |
| void | SetCoordinates (Scalar xx, Scalar yy) | 
| Set internal data based on 2 Scalar numbers.   | |
| void | SetX (Scalar a) | 
| set the x coordinate value keeping y constant   | |
| void | SetXY (Scalar xx, Scalar yy) | 
| set all values using cartesian coordinates   | |
| void | SetY (Scalar a) | 
| set the y coordinate value keeping x constant   | |
| Scalar | X () const | 
| Scalar | x () const | 
| Scalar | Y () const | 
| Scalar | y () const | 
Private Attributes | |
| T | fX = 0 | 
| (Contiguous) data containing the coordinates values x and y   | |
| T | fY = 0 | 
#include <MathX/GenVectorX/Cartesian2D.h>
| typedef T ROOT::ROOT_MATH_ARCH::Cartesian2D< T >::Scalar | 
Definition at line 47 of file Cartesian2D.h.
      
  | 
  constexprdefaultnoexcept | 
Default constructor with x=y=0.
      
  | 
  inline | 
Constructor from x,y coordinates.
Definition at line 57 of file Cartesian2D.h.
      
  | 
  inlineexplicitconstexpr | 
Construct from any Vector or coordinate system implementing X() and Y()
Definition at line 64 of file Cartesian2D.h.
      
  | 
  inlineexplicit | 
Definition at line 167 of file Cartesian2D.h.
      
  | 
  inline | 
get internal data into 2 Scalar numbers
Definition at line 80 of file Cartesian2D.h.
      
  | 
  inline | 
Definition at line 88 of file Cartesian2D.h.
      
  | 
  inline | 
negate the vector
Definition at line 123 of file Cartesian2D.h.
      
  | 
  inline | 
Definition at line 155 of file Cartesian2D.h.
      
  | 
  inline | 
Assignment from any class implementing x(),y() (can assign from any coordinate system)
Definition at line 144 of file Cartesian2D.h.
      
  | 
  inline | 
Definition at line 180 of file Cartesian2D.h.
      
  | 
  inline | 
Exact equality.
Definition at line 154 of file Cartesian2D.h.
      
  | 
  inline | 
Definition at line 90 of file Cartesian2D.h.
      
  | 
  inline | 
Definition at line 89 of file Cartesian2D.h.
      
  | 
  inline | 
rotate by an angle
Definition at line 132 of file Cartesian2D.h.
      
  | 
  inline | 
scale the vector by a scalar quantity a
Definition at line 114 of file Cartesian2D.h.
      
  | 
  inline | 
Set internal data based on 2 Scalar numbers.
Definition at line 71 of file Cartesian2D.h.
      
  | 
  inline | 
set the x coordinate value keeping y constant
Definition at line 95 of file Cartesian2D.h.
      
  | 
  inline | 
set all values using cartesian coordinates
Definition at line 105 of file Cartesian2D.h.
      
  | 
  inline | 
set the y coordinate value keeping x constant
Definition at line 100 of file Cartesian2D.h.
      
  | 
  inline | 
Definition at line 86 of file Cartesian2D.h.
      
  | 
  inline | 
Definition at line 161 of file Cartesian2D.h.
      
  | 
  inline | 
Definition at line 87 of file Cartesian2D.h.
      
  | 
  inline | 
Definition at line 162 of file Cartesian2D.h.
      
  | 
  private | 
(Contiguous) data containing the coordinates values x and y
Definition at line 202 of file Cartesian2D.h.
      
  | 
  private | 
Definition at line 203 of file Cartesian2D.h.