1 #ifndef __JROTATION2D__ 
    2 #define __JROTATION2D__ 
   14 namespace JGEOMETRY2D {}
 
   15 namespace JPP { 
using namespace JGEOMETRY2D; }
 
   17 namespace JGEOMETRY2D {
 
   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. 
 
JMatrix2D & mul(const double factor)
Scale matrix. 
 
void rotate(double &__x, double &__y) const 
Rotate. 
 
const JRotation2D & getRotation() const 
Get rotation. 
 
void rotate_back(double &__x, double &__y) const 
Rotate back. 
 
double getPhi() const 
Get phi angle. 
 
JRotation2D(const JAngle2D &dir)
Constructor. 
 
JMatrix2D & transpose()
Transpose. 
 
JRotation2D & mul(const JRotation2D &A)
Matrix multiplication. 
 
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
 
JMatrix2D & setIdentity()
Set to identity matrix. 
 
JRotation2D & transpose()
Transpose. 
 
JRotation2D()
Default constructor (= identity matrix).