Define a rotation based on an angle for a space of dimension 2.
More...
#include <vctAngleRotation2.h>
|
These constructors will either assume that the input is normalized or normalize the input (a copy of it, if required) based on the last parameter provided.
-
If the normalization flag is set to VCT_DO_NOT_NORMALIZE, the input is considered already normalized and the constructor will not perform any sanity check. This can lead to numerical instabilities which have to be handled by the caller.
-
If the normalization flag is set to VCT_NORMALIZE, the input will be normalized. This option should be used whenever it is important to obtain a result as "normalized" as possible.
|
| vctAngleRotation2 (const AngleType angle, bool normalizeInput) |
|
template<class _containerType > |
| vctAngleRotation2 (const vctMatrixRotation2Base< _containerType > &matrixRotation, bool normalizeInput) |
|
const AngleType & | Angle (void) const |
|
AngleType & | Angle (void) |
|
static CISST_EXPORT const
ThisType & | Identity () |
|
Define a rotation based on an angle for a space of dimension 2.
This class is not templated by the element type. It contains an angle of type AngleType.
- See Also
- vctMatrixRotation2Base vctMatrixRotation2
vctAngleRotation2::vctAngleRotation2 |
( |
| ) |
|
|
inline |
Default constructor. Sets the angle to zero.
vctAngleRotation2::vctAngleRotation2 |
( |
const AngleType |
angle | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
inlineexplicit |
Constructor from an angle (in radians).
template<class _containerType >
vctAngleRotation2::vctAngleRotation2 |
( |
const vctMatrixRotation2Base< _containerType > & |
matrixRotation | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
inline |
Constructor from a rotation matrix.
vctAngleRotation2::vctAngleRotation2 |
( |
const AngleType |
angle, |
|
|
bool |
normalizeInput |
|
) |
| |
|
inline |
Constructor from an angle (in radians).
template<class _containerType >
vctAngleRotation2::vctAngleRotation2 |
( |
const vctMatrixRotation2Base< _containerType > & |
matrixRotation, |
|
|
bool |
normalizeInput |
|
) |
| |
|
inline |
Constructor from a rotation matrix.
const AngleType& vctAngleRotation2::Angle |
( |
void |
| ) |
const |
|
inline |
AngleType& vctAngleRotation2::Angle |
( |
void |
| ) |
|
|
inline |
void vctAngleRotation2::DeSerializeRaw |
( |
std::istream & |
inputStream | ) |
|
|
inline |
ThisType& vctAngleRotation2::From |
( |
const AngleType |
angle | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
inline |
Conversion from an angle (in radians).
template<class _containerType >
Conversion from a rotation matrix.
ThisType& vctAngleRotation2::FromNormalized |
( |
const AngleType |
angle | ) |
|
|
inline |
Conversion from an angle (in radians).
template<class _containerType >
Conversion from a rotation matrix.
ThisType& vctAngleRotation2::FromRaw |
( |
const AngleType |
angle | ) |
|
|
inline |
Conversion from an angle (in radians).
template<class _containerType >
Conversion from a rotation matrix.
Const reference to the identity. In this case, the angle is set to zero.
ThisType vctAngleRotation2::Inverse |
( |
void |
| ) |
const |
|
inline |
Create and return by copy the inverse of this rotation. This method is not the most efficient since it requires a copy. See also InverseSelf().
Set this rotation as the inverse of another one. See also InverseSelf().
ThisType& vctAngleRotation2::InverseSelf |
( |
void |
| ) |
|
|
inline |
Inverse this angle rotation. This methods assumes that the angle is betweem 0 and 2 * PI. The angle is set to 2 * PI minus the previous value.
Test if this rotation is normalized. This methods always return "true" since any angle is considered valid. This method is provided mostly for API completion.
- Parameters
-
tolerance | Tolerance. This variable is not used as this rotation is always normalized. The tolerance parameter is provided just to have the same signature as for other transformations. |
ThisType vctAngleRotation2::Normalized |
( |
void |
| ) |
const |
|
inline |
Returns the normalized version of this rotation. This method returns a copy of the normalized rotation and does not modify this rotation. See also NormalizedSelf().
Sets this rotation as the normalized version of another one.
- Parameters
-
otherRotation | Angle rotation used to compute the normalized rotation. |
ThisType& vctAngleRotation2::NormalizedSelf |
( |
void |
| ) |
|
|
inline |
Normalizes the angle. This method ensures that the angle is between 0 and 2 * PI.
void vctAngleRotation2::SerializeRaw |
( |
std::ostream & |
outputStream | ) |
const |
|
inline |
void vctAngleRotation2::ThrowUnlessIsNormalized |
( |
void |
| ) |
const |
throw | ( | std::runtime_error |
| ) | | |
|
inlineprotected |
Throw an exception unless this rotation is normalized.
template<class _inputType >
void vctAngleRotation2::ThrowUnlessIsNormalized |
( |
const _inputType & |
input | ) |
const |
throw | ( | std::runtime_error |
| ) | | |
|
inlineprotected |
Throw an exception unless the input is normalized.
- Parameters
-
input | An object with IsNormalized method. |
void vctAngleRotation2::ToStream |
( |
std::ostream & |
outputStream | ) |
const |
|
inline |
Print the matrix in a human readable format
void vctAngleRotation2::ToStreamRaw |
( |
std::ostream & |
outputStream, |
|
|
const char |
CMN_UNUSEDdelimiter = ' ' , |
|
|
bool |
headerOnly = false , |
|
|
const std::string & |
headerPrefix = "" |
|
) |
| const |
|
inline |
Print in machine processable format
std::string vctAngleRotation2::ToString |
( |
void |
| ) |
const |
|
inline |
vctAngleRotation2::VCT_CONTAINER_TRAITS_TYPEDEFS |
( |
double |
| ) |
|
AngleType vctAngleRotation2::AngleMember |
|
protected |
The documentation for this class was generated from the following file: