1 #ifndef __JROTATION3D__
2 #define __JROTATION3D__
16 namespace JGEOMETRY3D {}
17 namespace JPP {
using namespace JGEOMETRY3D; }
19 namespace JGEOMETRY3D {
110 public JMath<JRotation3D>
140 const double ct = cos(dir.
getTheta());
141 const double st = sin(dir.
getTheta());
142 const double cp = cos(dir.
getPhi());
143 const double sp = sin(dir.
getPhi());
164 const double ct = cos(dir.
getTheta());
165 const double st = sin(dir.
getTheta());
166 const double cp = cos(dir.
getPhi());
167 const double sp = sin(dir.
getPhi());
277 void rotate(
double& __x,
double& __y,
double& __z)
const
279 const double x =
a00 * __x +
a01 * __y +
a02 * __z;
280 const double y =
a10 * __x +
a11 * __y +
a12 * __z;
281 const double z =
a20 * __x +
a21 * __y +
a22 * __z;
298 const double x =
a00 * __x +
a10 * __y +
a20 * __z;
299 const double y =
a01 * __x +
a11 * __y +
a21 * __z;
300 const double z =
a02 * __x +
a12 * __y +
a22 * __z;
Data structure for angles in three dimensions.
JRotation3D & transpose()
Transpose.
Auxiliary base class for aritmetic operations of derived class types.
double getPhi() const
Get phi angle.
JRotation3D(const JRotation3Y &R)
Constructor.
JRotation3Y(const double phi)
Constructor.
void rotate(double &__x, double &__y, double &__z) const
Rotate.
void rotate_back(double &__x, double &__y, double &__z) const
Rotate back.
JRotation3Y()
Default constructor (= identity matrix).
JRotation3D(const JAngle3D &dir, const JDerivative_t &dev)
Constructor.
JMatrix3D & mul(const double factor)
Scale matrix.
JMatrix3D & transpose()
Transpose.
JRotation3Z()
Default constructor (= identity matrix).
double getTheta() const
Get theta angle.
JRotation3D()
Default constructor (= identity matrix).
JRotation3X()
Default constructor (= identity matrix).
JRotation3D(const JAngle3D &dir)
Constructor.
const JRotation3D & getRotation() const
Get rotation.
JRotation3X(const double phi)
Constructor.
JRotation3Z(const double phi)
Constructor.
Base class for data structures with artithmetic capabilities.
JRotation3D(const JRotation3Z &R)
Constructor.
JMatrix3D & setIdentity()
Set to identity matrix.
JRotation3D & mul(const JRotation3D &A, const JRotation3D &B)
Matrix multiplication.
JRotation3D(const JRotation3X &R)
Constructor.