OpendTect
6.6
|
Quaternion is an extension to complex numbers. More...
Public Member Functions | |
Quaternion (const Vector3 &axis, float angle) | |
Quaternion (double s, double x, double y, double z) | |
void | getRotation (Vector3 &axis, float &angle) const |
Quaternion | inverse () const |
Quaternion | operator* (const Quaternion &) const |
Quaternion & | operator*= (const Quaternion &) |
Quaternion | operator+ (const Quaternion &) const |
Quaternion & | operator+= (const Quaternion &) |
Quaternion | operator- (const Quaternion &) const |
Quaternion & | operator-= (const Quaternion &) |
Coord3 | rotate (const Coord3 &) const |
void | setRotation (const Vector3 &axis, float angle) |
Public Attributes | |
double | s_ |
Vector3 | vec_ |
Quaternion is an extension to complex numbers.
A Quaternion is represented by the equation:
q = s + xi + yj + zk
where: i*i = j*j = k*k = -1.
<>
Quaternion::Quaternion | ( | double | s, |
double | x, | ||
double | y, | ||
double | z | ||
) |
Quaternion::Quaternion | ( | const Vector3 & | axis, |
float | angle | ||
) |
void Quaternion::getRotation | ( | Vector3 & | axis, |
float & | angle | ||
) | const |
Quaternion Quaternion::inverse | ( | ) | const |
Quaternion Quaternion::operator* | ( | const Quaternion & | ) | const |
Quaternion& Quaternion::operator*= | ( | const Quaternion & | ) |
Quaternion Quaternion::operator+ | ( | const Quaternion & | ) | const |
Quaternion& Quaternion::operator+= | ( | const Quaternion & | ) |
Quaternion Quaternion::operator- | ( | const Quaternion & | ) | const |
Quaternion& Quaternion::operator-= | ( | const Quaternion & | ) |
void Quaternion::setRotation | ( | const Vector3 & | axis, |
float | angle | ||
) |
double Quaternion::s_ |
Vector3 Quaternion::vec_ |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022