47 const double cp = cos(angle.
getPhi());
48 const double sp = sin(angle.
getPhi());
64 const double R = hypot(dir.
getX(), dir.
getY());
65 const double cp = dir.
getX() / R;
66 const double sp = dir.
getY() / R;
115 void rotate(
double& __x,
double& __y)
const
117 const double x =
a00 * __x +
a01 * __y;
118 const double y =
a10 * __x +
a11 * __y;
133 const double x =
a00 * __x +
a10 * __y;
134 const double y =
a01 * __x +
a11 * __y;
Data structure for angle in two dimensions.
double getPhi() const
Get phi angle.
JRotation2D(const JAngle2D &angle)
Constructor.
JRotation2D()
Default constructor (= identity matrix).
void rotate(double &__x, double &__y) const
Rotate.
JRotation2D & mul(const JRotation2D &A)
Matrix multiplication.
JRotation2D & transpose()
Transpose.
JRotation2D(const JVector2D &dir)
Constructor.
const JRotation2D & getRotation() const
Get rotation.
void rotate_back(double &__x, double &__y) const
Rotate back.
Data structure for vector in two dimensions.
double getY() const
Get y position.
double getX() const
Get x position.
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).