16#ifndef ROOT_MathX_GenVectorX_Cartesian2D
17#define ROOT_MathX_GenVectorX_Cartesian2D 1
43template <
class T =
double>
63 template <
class CoordSystem>
143 template <
class CoordSystem>
188#if defined(__MAKECINT__) || defined(G__DICTIONARY)
210#if defined(__MAKECINT__) || defined(G__DICTIONARY)
211#if !defined(ROOT_MATH_SYCL) && !defined(ROOT_MATH_CUDA)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint angle
Class describing a 2D cartesian coordinate system (x, y coordinates)
Cartesian2D & operator=(const Polar2D< T2 > &v)
void SetX(Scalar a)
set the x coordinate value keeping y constant
void SetY(Scalar a)
set the y coordinate value keeping x constant
T fX
(Contiguous) data containing the coordinates values x and y
Cartesian2D(const Polar2D< T2 > &v)
bool operator!=(const Cartesian2D &rhs) const
Cartesian2D & operator=(const CoordSystem &v)
Assignment from any class implementing x(),y() (can assign from any coordinate system)
void Rotate(Scalar angle)
rotate by an angle
void SetXY(Scalar xx, Scalar yy)
set all values using cartesian coordinates
bool operator==(const Cartesian2D &rhs) const
Exact equality.
void GetCoordinates(Scalar &xx, Scalar &yy) const
get internal data into 2 Scalar numbers
void Negate()
negate the vector
void Scale(Scalar a)
scale the vector by a scalar quantity a
constexpr Cartesian2D(const CoordSystem &v)
Construct from any Vector or coordinate system implementing X() and Y()
constexpr Cartesian2D() noexcept=default
Default constructor with x=y=0.
void SetCoordinates(Scalar xx, Scalar yy)
Set internal data based on 2 Scalar numbers.
Scalar math_cos(Scalar x)
Scalar math_sqrt(Scalar x)
Scalar math_atan2(Scalar x, Scalar y)
Scalar math_sin(Scalar x)