Rotation around Z-axis.
More...
#include <JRotation3D.hh>
Rotation around Z-axis.
Definition at line 82 of file JRotation3D.hh.
JGEOMETRY3D::JRotation3Z::JRotation3Z |
( |
| ) |
|
|
inline |
Default constructor (= identity matrix).
Definition at line 89 of file JRotation3D.hh.
JRotation2D()
Default constructor (= identity matrix).
JGEOMETRY3D::JRotation3Z::JRotation3Z |
( |
const double |
phi | ) |
|
|
inline |
Constructor.
- Parameters
-
phi | rotation angle (anti-clock wise) [rad] |
Definition at line 99 of file JRotation3D.hh.
JRotation2D()
Default constructor (= identity matrix).
const JRotation2D& JGEOMETRY2D::JRotation2D::getRotation |
( |
| ) |
const |
|
inlineinherited |
Transpose.
Definition at line 68 of file JRotation2D.hh.
JMatrix2D & transpose()
Transpose.
Matrix multiplication.
- Parameters
-
- Returns
- this * A
Definition at line 82 of file JRotation2D.hh.
JMatrix2D & mul(const double factor)
Scale matrix.
JMatrix2D& JMATH::JMatrix2D::mul |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale matrix.
- Parameters
-
- Returns
- this matrix * factor
Definition at line 194 of file JMath/JMatrix2D.hh.
196 a00 *= factor;
a01 *= factor;
197 a10 *= factor;
a11 *= factor;
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 273 of file JMath.hh.
Auxiliary class for product evaluation of objects.
void JGEOMETRY2D::JRotation2D::rotate |
( |
double & |
__x, |
|
|
double & |
__y |
|
) |
| const |
|
inlineinherited |
Rotate.
- Parameters
-
Definition at line 96 of file JRotation2D.hh.
98 const double x =
a00 * __x +
a01 * __y;
99 const double y =
a10 * __x +
a11 * __y;
void JGEOMETRY2D::JRotation2D::rotate_back |
( |
double & |
__x, |
|
|
double & |
__y |
|
) |
| const |
|
inlineinherited |
Rotate back.
- Parameters
-
Definition at line 112 of file JRotation2D.hh.
114 const double x =
a00 * __x +
a10 * __y;
115 const double y =
a01 * __x +
a11 * __y;
static const JMatrix2D& JMATH::JMatrix2D::getInstance |
( |
| ) |
|
|
inlinestaticinherited |
Get reference to unique instance of this class object.
- Returns
- zero matrix
Definition at line 70 of file JMath/JMatrix2D.hh.
static const JMatrix2D& JMATH::JMatrix2D::getIdentity |
( |
| ) |
|
|
inlinestaticinherited |
Get reference to unique instance of this class object.
- Returns
- identity matrix
Definition at line 97 of file JMath/JMatrix2D.hh.
JMatrix2D()
Default constructor.
JMatrix2D & setIdentity()
Set to identity matrix.
void JMATH::JMatrix2D::set |
( |
const JMatrix2D & |
A | ) |
|
|
inlineinherited |
Set matrix to the null matrix.
- Returns
- this matrix
Definition at line 121 of file JMath/JMatrix2D.hh.
JMatrix2D()
Default constructor.
JMatrix2D& JMATH::JMatrix2D::div |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale matrix.
- Parameters
-
- Returns
- this matrix / factor
Definition at line 209 of file JMath/JMatrix2D.hh.
211 a00 /= factor;
a01 /= factor;
212 a10 /= factor;
a11 /= factor;
bool JMATH::JMatrix2D::equals |
( |
const JMatrix2D & |
A, |
|
|
const double |
eps = std::numeric_limits<double>::min() |
|
) |
| const |
|
inlineinherited |
Equality.
- Parameters
-
A | matrix |
eps | numerical precision |
- Returns
- true if matrices identical; else false
Definition at line 245 of file JMath/JMatrix2D.hh.
248 return (fabs(
a00 - A.
a00) <= eps &&
249 fabs(
a01 - A.
a01) <= eps &&
250 fabs(
a10 - A.
a10) <= eps &&
251 fabs(
a11 - A.
a11) <= eps);
bool JMATH::JMatrix2D::isIdentity |
( |
const double |
eps = std::numeric_limits<double>::min() | ) |
const |
|
inlineinherited |
Test identity.
- Parameters
-
- Returns
- true if identity matrix; else false
Definition at line 261 of file JMath/JMatrix2D.hh.
static const JMatrix2D & getIdentity()
Get reference to unique instance of this class object.
bool equals(const JMatrix2D &A, const double eps=std::numeric_limits< double >::min()) const
Equality.
double JMATH::JMatrix2D::getDeterminant |
( |
| ) |
const |
|
inlineinherited |
Get determinant of matrix.
- Returns
- determinant of matrix
Definition at line 272 of file JMath/JMatrix2D.hh.
void JMATH::JMatrix2D::transform |
( |
double & |
__x, |
|
|
double & |
__y |
|
) |
| const |
|
inlineinherited |
double JMATH::JMatrix2D::a00 |
|
inherited |
double JMATH::JMatrix2D::a01 |
|
inherited |
double JMATH::JMatrix2D::a10 |
|
inherited |
double JMATH::JMatrix2D::a11 |
|
inherited |
The documentation for this class was generated from the following file: