diff --git a/html/3_d_2_transformation_8hpp_source.html b/html/3_d_2_transformation_8hpp_source.html index 5b1471df..a8385823 100644 --- a/html/3_d_2_transformation_8hpp_source.html +++ b/html/3_d_2_transformation_8hpp_source.html @@ -212,7 +212,7 @@
#include <OpenSpaceToolkit/Core/Error.hpp>
#include <OpenSpaceToolkit/Core/Utility.hpp>
#include <OpenSpaceToolkit/Mathematics/Geometry/3D/Transformation/Rotation/EulerAngle.hpp>
#include <OpenSpaceToolkit/Mathematics/Geometry/3D/Transformation/Rotation/Quaternion.hpp>
#include <OpenSpaceToolkit/Mathematics/Geometry/3D/Transformation/Rotation/RotationMatrix.hpp>
#include <OpenSpaceToolkit/Mathematics/Geometry/3D/Transformation/Rotation/RotationVector.hpp>
+Namespaces | |
ostk | |
Apache License 2.0. | |
ostk::mathematics | |
ostk::mathematics::geometry | |
ostk::mathematics::geometry::d3 | |
ostk::mathematics::geometry::d3::transformation | |
ostk::mathematics::geometry::d3::transformation::rotation | |
+Functions | |
std::ostream & | ostk::mathematics::geometry::d3::transformation::rotation::operator<< (std::ostream &anOutputStream, const EulerAngle &aEulerAngle) |
#include <OpenSpaceToolkit/Core/Type/Integer.hpp>
#include <OpenSpaceToolkit/Core/Type/Real.hpp>
#include <OpenSpaceToolkit/Core/Type/String.hpp>
#include <OpenSpaceToolkit/Mathematics/Geometry/Angle.hpp>
#include <OpenSpaceToolkit/Mathematics/Object/Vector.hpp>
Go to the source code of this file.
+Classes | |
class | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle |
Euler Angle (intrinsic rotation) More... | |
Namespaces | |
ostk |
diff --git a/html/_rotation_vector_8hpp_source.html b/html/_rotation_vector_8hpp_source.html
index 57b0196f..b409b792 100644
--- a/html/_rotation_vector_8hpp_source.html
+++ b/html/_rotation_vector_8hpp_source.html
@@ -115,95 +115,109 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Rotation matrix. Definition: RotationMatrix.hpp:39 Vector3d getAxis() const Get rotation axis. Definition: RotationVector.cpp:73 static RotationVector Unit() Constructs a unit rotation vector. Definition: RotationVector.cpp:110 static RotationVector Undefined() Constructs an undefined rotation vector. Definition: RotationVector.cpp:105 static RotationVector Quaternion(const rotation::Quaternion &aQuaternion) Constructs a rotation vector from a quaternion. Definition: RotationVector.cpp:145 Rotation matrix. Definition: RotationMatrix.hpp:40 Vector3d getAxis() const Get rotation axis. Definition: RotationVector.cpp:84 static RotationVector EulerAngle(const rotation::EulerAngle &aEulerAngle) Construct Rotation Vector from Euler Angle. Definition: RotationVector.cpp:225 static RotationVector Unit() Construct a unitary Rotation Vector. Definition: RotationVector.cpp:143 static RotationVector Undefined() Construct an undefined Rotation Vector. Definition: RotationVector.cpp:138 static RotationVector Quaternion(const rotation::Quaternion &aQuaternion) Construct Rotation Vector from Quaternion. Definition: RotationVector.cpp:178 bool isDefined() const Check if rotation vector is defined. Definition: RotationVector.cpp:68 Quaternion. Definition: Quaternion.hpp:47 static RotationVector Y(const Angle &anAngle) Constructs a rotation vector around Y-axis. Definition: RotationVector.cpp:125 static RotationVector X(const Angle &anAngle) Constructs a rotation vector around X-axis. Definition: RotationVector.cpp:115 static RotationVector Z(const Angle &anAngle) Constructs a rotation vector around Z-axis. Definition: RotationVector.cpp:135 bool operator!=(const RotationVector &aRotationVector) const Not equal to operator. Definition: RotationVector.cpp:49 bool isDefined() const Check if Rotation Vector is defined. Definition: RotationVector.cpp:79 Quaternion. Definition: Quaternion.hpp:48 static RotationVector Y(const Angle &anAngle) Construct Rotation Vector around Y-axis. Definition: RotationVector.cpp:158 static RotationVector X(const Angle &anAngle) Construct Rotation Vector around X-axis. Definition: RotationVector.cpp:148 static RotationVector Z(const Angle &anAngle) Construct Rotation Vector around Z-axis. Definition: RotationVector.cpp:168 bool operator!=(const RotationVector &aRotationVector) const Not equal to operator. Definition: RotationVector.cpp:60 Euler Angle (intrinsic rotation) Definition: EulerAngle.hpp:46 bool operator==(const RotationVector &aRotationVector) const Equal to operator. Definition: RotationVector.cpp:33 Rotation vector. Definition: RotationVector.hpp:38 static RotationVector RotationMatrix(const rotation::RotationMatrix &aRotationMatrix) Constructs a rotation vector from a rotation matrix. Definition: RotationVector.cpp:168 String toString(const Integer &aPrecision=Integer::Undefined()) const Convert rotation vector to its string representation. Definition: RotationVector.cpp:93 Angle getAngle() const Get rotation angle. Definition: RotationVector.cpp:83 friend std::ostream & operator<<(std::ostream &anOutputStream, const RotationVector &aRotationVector) Output stream operator. Definition: RotationVector.cpp:54 bool operator==(const RotationVector &aRotationVector) const Equal to operator. Definition: RotationVector.cpp:44 Rotation Vector. Definition: RotationVector.hpp:39 static RotationVector RotationMatrix(const rotation::RotationMatrix &aRotationMatrix) Construct Rotation Vector from Rotation Matrix. Definition: RotationVector.cpp:201 RotationVector & rectify() Rectify Rotation Vector (enforce positive angle) Definition: RotationVector.cpp:104 String toString(const Integer &aPrecision=Integer::Undefined()) const Convert Rotation Vector to string representation. Definition: RotationVector.cpp:126 Angle getAngle() const Get rotation angle. Definition: RotationVector.cpp:94 |
bool ostk::mathematics::geometry::Angle::isNear | +( | +const Angle & | +anAngle, | +
+ | + | const Angle & | +aTolerance | +
+ | ) | +const | +
Check if angles are near within an angular tolerance.
+[in] | anAngle | An angle |
[in] | aTolerance | A tolerance |
bool ostk::mathematics::geometry::Angle::isNegative | +( | +) | +const | +
This is the complete list of members for ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle, including all inherited members.
+AxisSequence enum name | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
EulerAngle(const Angle &aFirstAngle, const Angle &aSecondAngle, const Angle &aThirdAngle, const EulerAngle::AxisSequence &anAxisSequence) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
EulerAngle(const Vector3d &aVector, const Angle::Unit &anAngleUnit, const EulerAngle::AxisSequence &anAxisSequence) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
getAxisSequence() const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
getPhi() const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
getPsi() const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
getTheta() const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
isDefined() const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
isNear(const EulerAngle &aEulerAngle, const Angle &anAngularTolerance) const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
isUnitary() const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
operator!=(const EulerAngle &aEulerAngle) const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
operator<<(std::ostream &anOutputStream, const EulerAngle &aEulerAngle) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | friend |
operator==(const EulerAngle &aEulerAngle) const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
Quaternion(const rotation::Quaternion &aQuaternion, const EulerAngle::AxisSequence &anAxisSequence) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | static |
RotationMatrix(const rotation::RotationMatrix &aRotationMatrix, const EulerAngle::AxisSequence &anAxisSequence) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | static |
RotationVector(const rotation::RotationVector &aRotationVector, const EulerAngle::AxisSequence &anAxisSequence) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | static |
StringFromAxisSequence(const EulerAngle::AxisSequence &anAxisSequence) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | static |
toString(const Angle::Unit &anAngleUnit=Angle::Unit::Degree) const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
toVector(const Angle::Unit &anAngleUnit) const | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | |
Undefined() | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | static |
Unit() | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | static |
XYZ(const Angle &aFirstAngle, const Angle &aSecondAngle, const Angle &aThirdAngle) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | static |
ZXY(const Angle &aFirstAngle, const Angle &aSecondAngle, const Angle &aThirdAngle) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | static |
ZYX(const Angle &aFirstAngle, const Angle &aSecondAngle, const Angle &aThirdAngle) | ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle | static |
Euler Angle (intrinsic rotation) + More...
+ +#include <EulerAngle.hpp>
+Public Types | |
enum | AxisSequence { AxisSequence::Undefined, +AxisSequence::XYZ, +AxisSequence::ZXY, +AxisSequence::ZYX + } |
+Public Member Functions | |
EulerAngle (const Angle &aFirstAngle, const Angle &aSecondAngle, const Angle &aThirdAngle, const EulerAngle::AxisSequence &anAxisSequence) | |
Construct Euler Angle from angles and axis sequence. More... | |
EulerAngle (const Vector3d &aVector, const Angle::Unit &anAngleUnit, const EulerAngle::AxisSequence &anAxisSequence) | |
Construct Euler Angle from vector of angles and axis sequence. More... | |
bool | operator== (const EulerAngle &aEulerAngle) const |
Equal to operator. More... | |
bool | operator!= (const EulerAngle &aEulerAngle) const |
Not equal to operator. More... | |
bool | isDefined () const |
Check if Euler Angle is defined. More... | |
bool | isUnitary () const |
Check if Euler Angle is unitary. More... | |
bool | isNear (const EulerAngle &aEulerAngle, const Angle &anAngularTolerance) const |
Check if Euler Angle is equal to another Euler Angle within a given angular tolerance. More... | |
Angle | getPhi () const |
Get first angle of rotation (phi) More... | |
Angle | getTheta () const |
Get second angle of rotation (theta) More... | |
Angle | getPsi () const |
Get third angle of rotation (psi) More... | |
AxisSequence | getAxisSequence () const |
Get axis sequence. More... | |
Vector3d | toVector (const Angle::Unit &anAngleUnit) const |
Return vector containing the three angles. More... | |
String | toString (const Angle::Unit &anAngleUnit=Angle::Unit::Degree) const |
Return string form of Euler Angle [phi; theta; psi]. More... | |
+Static Public Member Functions | |
static EulerAngle | Undefined () |
Construct undefined Euler Angle. More... | |
static EulerAngle | Unit () |
Construct unitary Euler Angle. More... | |
static EulerAngle | XYZ (const Angle &aFirstAngle, const Angle &aSecondAngle, const Angle &aThirdAngle) |
Construct Euler Angle from angles following XYZ sequence. More... | |
static EulerAngle | ZXY (const Angle &aFirstAngle, const Angle &aSecondAngle, const Angle &aThirdAngle) |
Construct Euler Angle from angles following ZXY sequence. More... | |
static EulerAngle | ZYX (const Angle &aFirstAngle, const Angle &aSecondAngle, const Angle &aThirdAngle) |
Construct Euler Angle from angles following ZYX sequence. More... | |
static EulerAngle | Quaternion (const rotation::Quaternion &aQuaternion, const EulerAngle::AxisSequence &anAxisSequence) |
Construct Euler Angle from Rotation Matrix. More... | |
static EulerAngle | RotationVector (const rotation::RotationVector &aRotationVector, const EulerAngle::AxisSequence &anAxisSequence) |
Construct Euler Angle from Quaternion. More... | |
static EulerAngle | RotationMatrix (const rotation::RotationMatrix &aRotationMatrix, const EulerAngle::AxisSequence &anAxisSequence) |
Construct Euler Angle from Rotation Vector. More... | |
static String | StringFromAxisSequence (const EulerAngle::AxisSequence &anAxisSequence) |
Construct a string representation of an axis sequence. More... | |
+Friends | |
std::ostream & | operator<< (std::ostream &anOutputStream, const EulerAngle &aEulerAngle) |
Output stream operator. More... | |
Euler Angle (intrinsic rotation)
+Implementation from "Fundamentals of Spacecraft Attitude Determination and Control", + F. Landis Markley and John L. Crassidis, Springer +
https://en.wikipedia.org/wiki/Euler_angles https://en.wikipedia.org/wiki/Euler_angles#Conventions_by_intrinsic_rotations
+
+
|
+ +strong | +
ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::EulerAngle | +( | +const Angle & | +aFirstAngle, | +
+ | + | const Angle & | +aSecondAngle, | +
+ | + | const Angle & | +aThirdAngle, | +
+ | + | const EulerAngle::AxisSequence & | +anAxisSequence | +
+ | ) | ++ |
Construct Euler Angle from angles and axis sequence.
+[in] | aFirstAngle | A first angle (phi) |
[in] | aSecondAngle | A second angle (theta) |
[in] | aThirdAngle | A third angle (psi) |
[in] | anAxisSequence | An axis sequence |
ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::EulerAngle | +( | +const Vector3d & | +aVector, | +
+ | + | const Angle::Unit & | +anAngleUnit, | +
+ | + | const EulerAngle::AxisSequence & | +anAxisSequence | +
+ | ) | ++ |
Construct Euler Angle from vector of angles and axis sequence.
+[in] | aVector | A vector of angles |
[in] | anAngleUnit | An angle unit |
[in] | anAxisSequence | An axis sequence |
EulerAngle::AxisSequence ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::getAxisSequence | +( | +) | +const | +
Angle ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::getPhi | +( | +) | +const | +
Get first angle of rotation (phi)
+Angle ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::getPsi | +( | +) | +const | +
Get third angle of rotation (psi)
+Angle ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::getTheta | +( | +) | +const | +
Get second angle of rotation (theta)
+bool ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::isDefined | +( | +) | +const | +
bool ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::isNear | +( | +const EulerAngle & | +aEulerAngle, | +
+ | + | const Angle & | +anAngularTolerance | +
+ | ) | +const | +
bool ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::isUnitary | +( | +) | +const | +
bool ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::operator!= | +( | +const EulerAngle & | +aEulerAngle | ) | +const | +
Not equal to operator.
+[in] | aEulerAngle | A Euler Angle |
bool ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::operator== | +( | +const EulerAngle & | +aEulerAngle | ) | +const | +
Equal to operator.
+[in] | aEulerAngle | A Euler Angle |
+
|
+ +static | +
+
|
+ +static | +
+
|
+ +static | +
Construct Euler Angle from Quaternion.
+[in] | aQuaternion | A Quaternion |
[in] | anAxisSequence | An axis sequence |
+
|
+ +static | +
Construct a string representation of an axis sequence.
+[in] | anAxisSequence | An axis sequence |
String ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::toString | +( | +const Angle::Unit & | +anAngleUnit = Angle::Unit::Degree | ) | +const | +
Vector3d ostk::mathematics::geometry::d3::transformation::rotation::EulerAngle::toVector | +( | +const Angle::Unit & | +anAngleUnit | ) | +const | +
Return vector containing the three angles.
+[in] | anAngleUnit | An angle unit |
+
|
+ +static | +
+
|
+ +static | +
+
|
+ +static | +
+
|
+ +static | +
+
|
+ +static | +
+
|
+ +friend | +
Output stream operator.
+[in] | anOutputStream | An output stream |
[in] | aEulerAngle | A Euler Angle |
Static Public Member Functions | |||||||
static Quaternion | Undefined () | ||||||
Constructs an undefined quaternion. More... | |||||||
Construct undefined Quaternion. More... | |||||||
static Quaternion | Unit () | ||||||
Constructs a unit quaternion. More... | |||||||
Construct unitary Quaternion. More... | |||||||
static Quaternion | XYZS (const Real &aFirstComponent, const Real &aSecondComponent, const Real &aThirdComponent, const Real &aFourthComponent) | ||||||
Constructs a quaternion using the vector-scalar format. More... | |||||||
Construct Quaternion using the vector-scalar format. More... | |||||||
static Quaternion | RotationVector (const rotation::RotationVector &aRotationVector) | ||||||
Constructs a quaternion from a rotation vector. More... | |||||||
Construct Quaternion from rotation vector. More... | |||||||
static Quaternion | RotationMatrix (const rotation::RotationMatrix &aRotationMatrix) | ||||||
Constructs a rquaternion from a rotation matrix. More... | |||||||
Construct Quaternion from Rotation Matrix. More... | |||||||
static Quaternion | EulerAngle (const rotation::EulerAngle &aEulerAngle) | ||||||
Construct Quaternion from Euler Angle. More... | |||||||
static Quaternion | Parse (const String &aString, const Quaternion::Format &aFormat=Quaternion::Format::XYZS) | ||||||
Constructs a quaternion from a string. More... | |||||||
Construct Quaternion from string. More... | |||||||
static Quaternion | ShortestRotation (const Vector3d &aFirstVector, const Vector3d &aSecondVector) | ||||||
Constructs a quaternion describing the shortest rotation between two vectors. More... | |||||||
Construct Quaternion describing the shortest rotation between two vectors. More... | |||||||
static Quaternion | LERP (const Quaternion &aFirstQuaternion, const Quaternion &aSecondQuaternion, const Real &aRatio) | ||||||
Linear interpolator method. More... |
[in] | aFirstComponent | A first component |
[in] | aSecondComponent | A second component |
[in] | aThirdComponent | A third component |
[in] | aFourthComponent | A fourth component |
[in] | aFormat | A quaternion format |
[in] | aFormat | A Quaternion format |
Constructor.
-[in] | aVector | A 4D vector |
[in] | aFormat | A quaternion format |
[in] | aFormat | A Quaternion format |
Constructor.
-[in] | aVectorPart | A vector part |
[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Conjugate quaternion.
-Conjugate Quaternion.
+Get quaternion norm.
-Multiply Quaternion using cross multiplication.
+[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Multiply quaternion using dot multiplication.
+Multiply Quaternion using dot multiplication.
[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Calculate quaternion dot product.
+Calculate Quaternion dot product.
[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
+
|
+ +static | +
Construct Quaternion from Euler Angle.
+[in] | EulerAngle | A Euler Angle |
Get normalized quaternion.
-Calculate exponential of Quaternion.
+Get scalar part.
-Get vector part.
-Inverse quaternion.
-Inverse Quaternion.
+Check if quaternion is defined.
-Check if Quaternion is defined.
+Check if quaternion is near a given quaternion.
-Check if Quaternion is near another Quaternion.
+[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
[in] | anAngularTolerance | An angular tolerance |
Check if quaternion is unitary, i.e. its norm is equal to 1.0.
-Check if Quaternion is unitary (i.e., its norm is equal to 1.0)
+[in] | aFirstQuaternion | A first quaternion |
[in] | aSecondQuaternion | A second quaternion |
[in] | aFirstQuaternion | A first Quaternion |
[in] | aSecondQuaternion | A second Quaternion |
[in] | aRatio | An interpolator ratio |
Get logarithm.
+Calculate logarithm of Quaternion.
[in] | aFirstQuaternion | A first quaternion |
[in] | aSecondQuaternion | A second quaternion |
[in] | aFirstQuaternion | A first Quaternion |
[in] | aSecondQuaternion | A second Quaternion |
[in] | aRatio | An interpolator ratio |
Real ostk::mathematics::geometry::d3::transformation::rotation::Quaternion::norm | +( | +) | +const | +
Calculate norm of Quaternion.
+Normalize quaternion.
-Normalize Quaternion.
+Not equal to operator.
-[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Quaternion ostk::mathematics::geometry::d3::transformation::rotation::Quaternion::operator* | +( | +const Quaternion & | +aQuaternion | ) | +const | +
Multiplication operator (Quaternion)
+[in] | aQuaternion | A Quaternion |
Multiplication operator (scalar)
-Example:
Addition operator (quaternion)
-Multiplication operator (vector)
+[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Quaternion ostk::mathematics::geometry::d3::transformation::rotation::Quaternion::operator+ | +( | +const Quaternion & | +aQuaternion | ) | +const | +
Addition assignment operator (quaternion)
+Addition assignment operator (Quaternion)
[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Division operator (quaternion)
+Division operator (Quaternion)
[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Division assignment operator (quaternion)
+Division assignment operator (Quaternion)
[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Equal to operator.
-[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Power operator (quaternion)
+Power operator (Quaternion)
Constructs a quaternion from a string.
-Construct Quaternion from string.
+[in] | aString | A string |
[in] | (optional) | aFormat A quaternion format |
[in] | (optional) | aFormat A Quaternion format |
Get power.
+Calculate power of Quaternion.
Rectify quaternion (enforce positive scalar part)
-Rectify Quaternion (enforce positive scalar part)
+Rotate vector using quaternion.
-Rotate vector using Quaternion.
+[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Constructs a rquaternion from a rotation matrix.
-Construct Quaternion from Rotation Matrix.
+[in] | aRotationMatrix | A rotation matrix |
[in] | aRotationMatrix | A Rotation Matrix |
Constructs a quaternion from a rotation vector.
-Construct Quaternion from rotation vector.
+[in] | aRotationVector | A rotation vector |
[in] | aRotationVector | A Rotation Vector |
@bref Get scalar part
-Constructs a quaternion describing the shortest rotation between two vectors.
-Construct Quaternion describing the shortest rotation between two vectors.
+[in] | aFirstVector | A first vector |
[in] | aFirstQuaternion | A first quaternion |
[in] | aSecondQuaternion | A second quaternion |
[in] | aFirstQuaternion | A first Quaternion |
[in] | aSecondQuaternion | A second Quaternion |
[in] | aRatio | An interpolator ratio |
Quaternion ostk::mathematics::geometry::d3::transformation::rotation::Quaternion::toConjugate | +( | +) | +const | +
Calculate conjugate of Quaternion.
+Quaternion ostk::mathematics::geometry::d3::transformation::rotation::Quaternion::toInverse | +( | +) | +const | +
Calculate inverse of Quaternion.
+Quaternion ostk::mathematics::geometry::d3::transformation::rotation::Quaternion::toNormalized | +( | +) | +const | +
Calculate normalized Quaternion.
+Convert quaternion to its string representation.
-Convert Quaternion to its string representation.
+[in] | (optional) | aPrecision A quaternion precision |
[in] | (optional) | aFormat A quaternion format |
[in] | (optional) | aPrecision A Quaternion precision |
[in] | (optional) | aFormat A Quaternion format |
Convert quaternion to its vector representation.
-Convert Quaternion to its vector representation.
+[in] | (optional) | aFormat A quaternion format |
[in] | (optional) | aFormat A Quaternion format |
Constructs an undefined quaternion.
-Construct undefined Quaternion.
+Constructs a unit quaternion.
-Construct unitary Quaternion.
+Get first component of vector part.
-Constructs a quaternion using the vector-scalar format.
-Construct Quaternion using the vector-scalar format.
+[in] | aFirstComponent | A first component |
[in] | aScalar | A scalar |
[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Output stream operator.
-[in] | anOutputStream | An output stream |
[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Static Public Member Functions | |
static RotationMatrix | Undefined () |
Constructs an undefined rotation matrix. More... | |
Construct an undefined Rotation Matrix. More... | |
static RotationMatrix | Unit () |
Constructs a unit rotation matrix. More... | |
Construct unitary Rotation Matrix. More... | |
static RotationMatrix | RX (const Angle &aRotationAngle) |
Constructs a rotation matrix representing a rotation around the X-axis. More... | |
Construct Rotation Matrix representing a rotation around the X-axis. More... | |
static RotationMatrix | RY (const Angle &aRotationAngle) |
Constructs a rotation matrix representing a rotation around the Y-axis. More... | |
Construct Rotation Matrix representing a rotation around the Y-axis. More... | |
static RotationMatrix | RZ (const Angle &aRotationAngle) |
Constructs a rotation matrix representing a rotation around the Z-axis. More... | |
Construct Rotation Matrix representing a rotation around the Z-axis. More... | |
static RotationMatrix | Rows (const Vector3d &aFirstRow, const Vector3d &aSecondRow, const Vector3d &aThirdRow) |
Constructs a rotation matrix from row vectors. More... | |
Construct Rotation Matrix from row vectors. More... | |
static RotationMatrix | Columns (const Vector3d &aFirstColumn, const Vector3d &aSecondColumn, const Vector3d &aThirdColumn) |
Constructs a rotation matrix from column vectors. More... | |
Construct Rotation Matrix from column vectors. More... | |
static RotationMatrix | Quaternion (const rotation::Quaternion &aQuaternion) |
Constructs a rotation matrix from a quaternion. More... | |
Construct Rotation Matrix from Quaternion. More... | |
static RotationMatrix | RotationVector (const rotation::RotationVector &aRotationVector) |
Constructs a rotation matrix from a rotation vector. More... | |
Construct Rotation Matrix from Rotation Vector. More... | |
static RotationMatrix | EulerAngle (const rotation::EulerAngle &aEulerAngle) |
Construct Rotation Matrix from Euler Angle. More... | |
Friends |
[in] | aFirstColumn | A first column |
+
|
+ +static | +
Get underlying rotation matrix.
-Get underlying 3D Matrix.
+Check if rotation matrix is defined.
-Check if Rotation Matrix is defined.
+Not equal to operator.
-[in] | aRotationMatrix | A rotation matrix |
[in] | aRotationMatrix | A Rotation Matrix |
Index function operator.
-[in] | aRowIndex | A row index |
[in] | aRotationMatrix | A rotation matrix |
[in] | aRotationMatrix | A Rotation Matrix |
Equal to operator.
-[in] | aRotationMatrix | A rotation matrix |
[in] | aRotationMatrix | A Rotation Matrix |
Constructs a rotation matrix from a quaternion.
-Construct Rotation Matrix from Quaternion.
+[in] | aQuaternion | A quaternion |
[in] | aQuaternion | A Quaternion |
Constructs a rotation matrix from a rotation vector.
-Construct Rotation Matrix from Rotation Vector.
+[in] | aRotationVector | A rotation vector |
[in] | aRotationVector | A Rotation Vector |
Constructs a rotation matrix from row vectors.
-Construct Rotation Matrix from row vectors.
+[in] | aFirstRow | A first row |
[in] | aRotationAngle | A rotation angle |
[in] | aRotationAngle | A rotation angle |
[in] | aRotationAngle | A rotation angle |
[in] | anOutputStream | An output stream |
[in] | aRotationMatrix | A rotation matrix |
[in] | aRotationMatrix | A Rotation Matrix |
Rotation vector. +
Rotation Vector. More...
#include <RotationVector.hpp>
Static Public Member Functions | |
static RotationVector | Undefined () |
Constructs an undefined rotation vector. More... | |
Construct an undefined Rotation Vector. More... | |
static RotationVector | Unit () |
Constructs a unit rotation vector. More... | |
Construct a unitary Rotation Vector. More... | |
static RotationVector | X (const Angle &anAngle) |
Constructs a rotation vector around X-axis. More... | |
Construct Rotation Vector around X-axis. More... | |
static RotationVector | Y (const Angle &anAngle) |
Constructs a rotation vector around Y-axis. More... | |
Construct Rotation Vector around Y-axis. More... | |
static RotationVector | Z (const Angle &anAngle) |
Constructs a rotation vector around Z-axis. More... | |
Construct Rotation Vector around Z-axis. More... | |
static RotationVector | Quaternion (const rotation::Quaternion &aQuaternion) |
Constructs a rotation vector from a quaternion. More... | |
Construct Rotation Vector from Quaternion. More... | |
static RotationVector | RotationMatrix (const rotation::RotationMatrix &aRotationMatrix) |
Constructs a rotation vector from a rotation matrix. More... | |
Construct Rotation Vector from Rotation Matrix. More... | |
static RotationVector | EulerAngle (const rotation::EulerAngle &aEulerAngle) |
Construct Rotation Vector from Euler Angle. More... | |
Friends | |
Rotation vector.
+Rotation Vector.
–angle_representation#Rotation_vector
Constructor.
-[in] | anAxis | A rotation axis | |||||
[in] | anAngle | A rotation angle |
ostk::mathematics::geometry::d3::transformation::rotation::RotationVector::RotationVector | +( | +const Vector3d & | +anAxis, | +
+ | + | const Angle::Unit & | +anAngleUnit | +
+ | ) | ++ |
Construct Rotation Vector from vector and angle unit The norm of the vector defines the rotation angle.
+[in] | aVector | A vector |
[in] | anAngleUnit | An angle unit |
+
|
+ +static | +
Get rotation angle.
-Get rotation axis.
-Check if rotation vector is defined.
-Check if Rotation Vector is defined.
+Not equal to operator.
-[in] | aRotationVector | A rotation vector |
[in] | aRotationVector | A Rotation Vector |
Equal to operator.
-[in] | aRotationVector | A rotation vector |
[in] | aRotationVector | A Rotation Vector |
Constructs a rotation vector from a quaternion.
-Construct Rotation Vector from Quaternion.
+[in] | aQuaternion | A quaternion |
RotationVector & ostk::mathematics::geometry::d3::transformation::rotation::RotationVector::rectify | +( | +) | ++ |
Rectify Rotation Vector (enforce positive angle)
+Constructs a rotation vector from a rotation matrix.
-Construct Rotation Vector from Rotation Matrix.
+[in] | aRotationMatrix | A rotation matrix |
[in] | aRotationMatrix | A Rotation Matrix |
Convert rotation vector to its string representation.
-Convert Rotation Vector to string representation.
+[in] | (optional) | aPrecision A precision |