Go to the documentation of this file.    1 #ifndef __JROTATION2D__ 
    2 #define __JROTATION2D__ 
   46       const double cp = cos(dir.
getPhi());
 
   47       const double sp = sin(dir.
getPhi());
 
   61       return static_cast<const JRotation2D&>(*
this);
 
   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;
 
 
void rotate_back(double &__x, double &__y) const
Rotate back.
 
const JRotation2D & getRotation() const
Get rotation.
 
Auxiliary classes and methods for 2D geometrical objects and operations.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
JRotation2D & mul(const JRotation2D &A)
Matrix multiplication.
 
void rotate(double &__x, double &__y) const
Rotate.
 
JRotation2D()
Default constructor (= identity matrix).
 
JRotation2D & transpose()
Transpose.
 
JRotation2D(const JAngle2D &dir)
Constructor.
 
JMatrix2D & mul(const double factor)
Scale matrix.
 
Data structure for angle in two dimensions.
 
JMatrix2D & setIdentity()
Set to identity matrix.
 
double getPhi() const
Get phi angle.
 
JMatrix2D & transpose()
Transpose.