Compacted affine matrix describing the Common Vision Blox coordinate system. More...
#include <cvb/affine_matrix_2d.hpp>
Public Member Functions | |
| AffineMatrix2D () noexcept=default | |
| Default constructor for empty affine matrix. | |
| AffineMatrix2D (Cvb::Matrix2D matrix, Vector2D< double > translation) noexcept | |
| Define an affine matrix. | |
| Cvb::Matrix2D | Matrix () const noexcept |
| Get the transformation part of the affine matrix. | |
| void | SetMatrix (Cvb::Matrix2D matrix) noexcept |
| Set the transformation part of the affine matrix. | |
| Vector2D< double > | Translation () const noexcept |
| Get the translation part of the affine matrix. | |
| void | SetTranslation (Vector2D< double > translation) noexcept |
| Set the translation part of the affine matrix. | |
| void | Invert () |
| Invert this affine transformation in-place if possible. | |
| AffineMatrix2D | Inverse () |
| Gets the inverse of this affine transformation if possible. | |
| bool | IsTranslation () const noexcept |
| Check if this affine matrix only describes a translation. | |
| bool | operator== (const AffineMatrix2D &affineMatrix) const noexcept |
| Compares to an other matrix. | |
| bool | operator!= (const AffineMatrix2D &affineMatrix) const noexcept |
| Compares to an other matrix. | |
| AffineMatrix2D & | operator+= (const AffineMatrix2D &affineMatrix) noexcept |
| Adds and assigns to this affine matrix. | |
| AffineMatrix2D & | operator-= (const AffineMatrix2D &affineMatrix) noexcept |
| Subtracts and assigns to this affine matrix. | |
| AffineMatrix2D & | operator*= (const AffineMatrix2D &affineMatrix) noexcept |
| Multiplies and assigns to this affine matrix. | |
| AffineMatrix2D & | operator*= (const double &value) noexcept |
| Multiplies and assigns to this affine matrix. | |
| AffineMatrix2D & | operator/= (const double &value) noexcept |
| Divides each element of this affine matrix by the given value. | |
Static Public Member Functions | |
| static AffineMatrix2D | Identity () noexcept |
| The identity element. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| AffineMatrix2D | operator+ (const AffineMatrix2D &lhs, const AffineMatrix2D &rhs) noexcept |
| Add two affine matrices. | |
| AffineMatrix2D | operator- (const AffineMatrix2D &lhs, const AffineMatrix2D &rhs) noexcept |
| Subtract two affine matrices. | |
| AffineMatrix2D | operator* (const AffineMatrix2D &lhs, const AffineMatrix2D &rhs) noexcept |
| Multiply two affine matrices. | |
| Point2D< double > | operator* (const AffineMatrix2D &lhs, const Point2D< double > &rhs) noexcept |
| Multiply affine matrix with 2D point. | |
| AffineMatrix2D | operator* (const AffineMatrix2D &lhs, const double &rhs) noexcept |
| Multiply affine matrix with scalar. | |
| AffineMatrix2D | operator* (const double &lhs, const AffineMatrix2D &rhs) noexcept |
| Multiply scalar with affine matrix . | |
| AffineMatrix2D | operator/ (const AffineMatrix2D &lhs, const double &rhs) |
| Divide affine matrix by scalar. | |
Compacted affine matrix describing the Common Vision Blox coordinate system.
|
defaultnoexcept |
Default constructor for empty affine matrix.
| Does | not throw any exception. |
|
inlinenoexcept |
Define an affine matrix.
| [in] | matrix | The transformation part. |
| [in] | translation | The translation part. |
| Does | not throw any exception. |
|
inlinestaticnoexcept |
The identity element.
| Does | not throw any exception. |
|
inline |
Gets the inverse of this affine transformation if possible.
| Any | exception derived from std::exception including CvbException. |
Might cause division by zero.
|
inline |
Invert this affine transformation in-place if possible.
| Any | exception derived from std::exception including CvbException. |
Might cause division by zero.
|
inlinenoexcept |
Check if this affine matrix only describes a translation.
| Does | not throw any exception. |
|
inlinenoexcept |
Get the transformation part of the affine matrix.
| Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other matrix.
| [in] | affineMatrix | Other matrix. |
| Does | not throw any exception. |
|
inlinenoexcept |
Multiplies and assigns to this affine matrix.
| [in] | affineMatrix | Other affine matrix. |
| Does | not throw any exception. |
|
inlinenoexcept |
Multiplies and assigns to this affine matrix.
| [in] | value | Factor. |
| Does | not throw any exception. |
|
inlinenoexcept |
Adds and assigns to this affine matrix.
| [in] | affineMatrix | Other affine matrix. |
| Does | not throw any exception. |
|
inlinenoexcept |
Subtracts and assigns to this affine matrix.
| [in] | affineMatrix | Other affine matrix. |
| Does | not throw any exception. |
|
inlinenoexcept |
Divides each element of this affine matrix by the given value.
| [in] | value | Divisor. |
| Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other matrix.
| [in] | affineMatrix | Other matrix. |
| Does | not throw any exception. |
|
inlinenoexcept |
Set the transformation part of the affine matrix.
| [in] | matrix | The transformation matrix. |
| Does | not throw any exception. |
|
inlinenoexcept |
Set the translation part of the affine matrix.
| [in] | translation | The 2D translation part. |
| Does | not throw any exception. |
|
inlinenoexcept |
Get the translation part of the affine matrix.
| Does | not throw any exception. |
|
Multiply two affine matrices.
| [in] | lhs | Right hand side affine matrix. |
| [in] | rhs | Left hand side affine matrix. |
| Does | not throw any exception. |
|
Multiply affine matrix with scalar.
| [in] | lhs | Right hand side affine matrix. |
| [in] | rhs | Left hand side value. |
| Does | not throw any exception. |
|
Multiply affine matrix with 2D point.
| [in] | lhs | Right hand side affine matrix. |
| [in] | rhs | Left hand side point. |
| Does | not throw any exception. |
|
Multiply scalar with affine matrix .
| [in] | lhs | Right hand side value. |
| [in] | rhs | Left hand side affine matrix. |
| Does | not throw any exception. |
|
Add two affine matrices.
| [in] | lhs | Right hand side affine matrix. |
| [in] | rhs | Left hand side affine matrix. |
| Does | not throw any exception. |
|
Subtract two affine matrices.
| [in] | lhs | Right hand side affine matrix. |
| [in] | rhs | Left hand side affine matrix. |
| Does | not throw any exception. |
|
Divide affine matrix by scalar.
| [in] | lhs | Right hand side affine matrix. |
| [in] | rhs | Left hand side value. |
| Does | not throw any exception. |