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. More... | |
AffineMatrix2D (Cvb::Matrix2D matrix, Vector2D< double > translation) noexcept | |
Define an affine matrix. More... | |
Cvb::Matrix2D | Matrix () const noexcept |
Get the transformation part of the affine matrix. More... | |
void | SetMatrix (Cvb::Matrix2D matrix) noexcept |
Set the transformation part of the affine matrix. More... | |
Vector2D< double > | Translation () const noexcept |
Get the translation part of the affine matrix. More... | |
void | SetTranslation (Vector2D< double > translation) noexcept |
Set the translation part of the affine matrix. More... | |
void | Invert () |
Invert this affine transformation in-place if possible. More... | |
AffineMatrix2D | Inverse () |
Gets the inverse of this affine transformation if possible. More... | |
bool | IsTranslation () const noexcept |
Check if this affine matrix only describes a translation. More... | |
bool | operator== (const AffineMatrix2D &affineMatrix) const noexcept |
Compares to an other matrix. More... | |
bool | operator!= (const AffineMatrix2D &affineMatrix) const noexcept |
Compares to an other matrix. More... | |
AffineMatrix2D & | operator+= (const AffineMatrix2D &affineMatrix) noexcept |
Adds and assigns to this affine matrix. More... | |
AffineMatrix2D & | operator-= (const AffineMatrix2D &affineMatrix) noexcept |
Subtracts and assigns to this affine matrix. More... | |
AffineMatrix2D & | operator*= (const AffineMatrix2D &affineMatrix) noexcept |
Multiplies and assigns to this affine matrix. More... | |
AffineMatrix2D & | operator*= (const double &value) noexcept |
Multiplies and assigns to this affine matrix. More... | |
AffineMatrix2D & | operator/= (const double &value) noexcept |
Divides each element of this affine matrix by the given value. More... | |
Static Public Member Functions | |
static AffineMatrix2D | Identity () noexcept |
The identity element. More... | |
Related Functions | |
(Note that these are not member functions.) | |
AffineMatrix2D | operator+ (const AffineMatrix2D &lhs, const AffineMatrix2D &rhs) noexcept |
Add two affine matrices. More... | |
AffineMatrix2D | operator- (const AffineMatrix2D &lhs, const AffineMatrix2D &rhs) noexcept |
Subtract two affine matrices. More... | |
AffineMatrix2D | operator* (const AffineMatrix2D &lhs, const AffineMatrix2D &rhs) noexcept |
Multiply two affine matrices. More... | |
Point2D< double > | operator* (const AffineMatrix2D &lhs, const Point2D< double > &rhs) noexcept |
Multiply affine matrix with 2D point. More... | |
AffineMatrix2D | operator* (const AffineMatrix2D &lhs, const double &rhs) noexcept |
Multiply affine matrix with scalar. More... | |
AffineMatrix2D | operator* (const double &lhs, const AffineMatrix2D &rhs) noexcept |
Multiply scalar with affine matrix . More... | |
AffineMatrix2D | operator/ (const AffineMatrix2D &lhs, const double &rhs) |
Divide affine matrix by scalar. More... | |
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. |
|
related |
Multiply two affine matrices.
[in] | lhs | Right hand side affine matrix. |
[in] | rhs | Left hand side affine matrix. |
Does | not throw any exception. |
|
related |
Multiply affine matrix with scalar.
[in] | lhs | Right hand side affine matrix. |
[in] | rhs | Left hand side value. |
Does | not throw any exception. |
|
related |
Multiply affine matrix with 2D point.
[in] | lhs | Right hand side affine matrix. |
[in] | rhs | Left hand side point. |
Does | not throw any exception. |
|
related |
Multiply scalar with affine matrix .
[in] | lhs | Right hand side value. |
[in] | rhs | Left hand side affine matrix. |
Does | not throw any exception. |
|
related |
Add two affine matrices.
[in] | lhs | Right hand side affine matrix. |
[in] | rhs | Left hand side affine matrix. |
Does | not throw any exception. |
|
related |
Subtract two affine matrices.
[in] | lhs | Right hand side affine matrix. |
[in] | rhs | Left hand side affine matrix. |
Does | not throw any exception. |
|
related |
Divide affine matrix by scalar.
[in] | lhs | Right hand side affine matrix. |
[in] | rhs | Left hand side value. |
Does | not throw any exception. |