Rotation around Y-axis.
More...
#include <JRotation3D.hh>
Rotation around Y-axis.
Definition at line 57 of file JRotation3D.hh.
◆ JRotation3Y() [1/2]
JGEOMETRY3D::JRotation3Y::JRotation3Y |
( |
| ) |
|
|
inline |
Default constructor (= identity matrix).
Definition at line 64 of file JRotation3D.hh.
◆ JRotation3Y() [2/2]
JGEOMETRY3D::JRotation3Y::JRotation3Y |
( |
const double |
phi | ) |
|
|
inline |
Constructor.
Note that in the x-z plane the corresponding rotation is clock wise.
- Parameters
-
phi | rotation angle (anti-clock wise) [rad] |
Definition at line 76 of file JRotation3D.hh.
◆ getRotation()
const JRotation2D& JGEOMETRY2D::JRotation2D::getRotation |
( |
| ) |
const |
|
inlineinherited |
Get rotation.
- Returns
- rotation
Definition at line 59 of file JRotation2D.hh.
61 return static_cast<const JRotation2D&>(*
this);
◆ transpose()
◆ mul() [1/4]
Matrix multiplication.
- Parameters
-
- Returns
- this * A
Definition at line 82 of file JRotation2D.hh.
◆ mul() [2/4]
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;
◆ mul() [3/4]
◆ mul() [4/4]
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 273 of file JMath.hh.
◆ rotate()
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;
◆ rotate_back()
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;
◆ getInstance()
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.
◆ setIdentity()
◆ getIdentity()
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.
◆ set()
void JMATH::JMatrix2D::set |
( |
const JMatrix2D & |
A | ) |
|
|
inlineinherited |
Set matrix.
- Parameters
-
Definition at line 110 of file JMath/JMatrix2D.hh.
112 static_cast<JMatrix2D&>(*
this) = A;
◆ reset()
◆ negate()
◆ add()
◆ sub()
◆ div()
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;
◆ equals()
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);
◆ isIdentity()
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.
◆ getDeterminant()
double JMATH::JMatrix2D::getDeterminant |
( |
| ) |
const |
|
inlineinherited |
Get determinant of matrix.
- Returns
- determinant of matrix
Definition at line 272 of file JMath/JMatrix2D.hh.
◆ transform()
void JMATH::JMatrix2D::transform |
( |
double & |
__x, |
|
|
double & |
__y |
|
) |
| const |
|
inlineinherited |
◆ a00
double JMATH::JMatrix2D::a00 |
|
inherited |
◆ a01
double JMATH::JMatrix2D::a01 |
|
inherited |
◆ a10
double JMATH::JMatrix2D::a10 |
|
inherited |
◆ a11
double JMATH::JMatrix2D::a11 |
|
inherited |
The documentation for this class was generated from the following file: