Givens quaternion.
More...
|
| JGivens (const double a, const double b) |
| Constructor.
|
|
double | geta () const |
| get new a value
|
|
double | getb () const |
| get new b value
|
|
|
double | ch |
| cosine rotation angle
|
|
double | sh |
| sine rotation angle
|
|
|
static constexpr double | EPSILON = 1.0e-6 |
|
Givens quaternion.
Definition at line 374 of file JSVD3D.hh.
◆ JGivens()
JMATH::JSVD3D::JGivens::JGivens |
( |
const double | a, |
|
|
const double | b ) |
|
inline |
Constructor.
- Parameters
-
a | pivot point on diagonal |
b | lower triangular entry we want to annihilate |
Definition at line 384 of file JSVD3D.hh.
386 {
388
389 const double rho = sqrt(a*a + b*b);
390
393
394 if (a < 0.0) {
396 }
397
398 const double w = 1.0 / sqrt(
ch*
ch +
sh*
sh);
399
402 }
double ch
cosine rotation angle
double sh
sine rotation angle
static constexpr double EPSILON
◆ geta()
double JMATH::JSVD3D::JGivens::geta |
( |
| ) |
const |
|
inline |
◆ getb()
double JMATH::JSVD3D::JGivens::getb |
( |
| ) |
const |
|
inline |
◆ EPSILON
double JMATH::JSVD3D::JGivens::EPSILON = 1.0e-6 |
|
staticconstexpr |
◆ ch
double JMATH::JSVD3D::JGivens::ch |
cosine rotation angle
Definition at line 407 of file JSVD3D.hh.
◆ sh
double JMATH::JSVD3D::JGivens::sh |
sine rotation angle
Definition at line 408 of file JSVD3D.hh.
The documentation for this struct was generated from the following file: