46 const double cp = cos(dir.
getPhi());
47 const double sp = sin(dir.
getPhi());
96 void rotate(
double& __x,
double& __y)
const
98 const double x =
a00 * __x +
a01 * __y;
99 const double y =
a10 * __x +
a11 * __y;
114 const double x =
a00 * __x +
a10 * __y;
115 const double y =
a01 * __x +
a11 * __y;
Data structure for angle in two dimensions.
double getPhi() const
Get phi angle.
JRotation2D()
Default constructor (= identity matrix).
void rotate(double &__x, double &__y) const
Rotate.
JRotation2D & mul(const JRotation2D &A)
Matrix multiplication.
JRotation2D & transpose()
Transpose.
const JRotation2D & getRotation() const
Get rotation.
JRotation2D(const JAngle2D &dir)
Constructor.
void rotate_back(double &__x, double &__y) const
Rotate back.
JMatrix2D & setIdentity()
Set to identity matrix.
JMatrix2D & mul(const double factor)
Scale matrix.
JMatrix2D & transpose()
Transpose.
Auxiliary classes and methods for 2D geometrical objects and operations.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).