CVBpy 15.1
Loading...
Searching...
No Matches
AffineMatrix2D Class Reference

Compacted affine matrix describing the Common Vision Blox coordinate system. More...

Public Member Functions

None AffineMatrix2D (self, Optional[cvb.Matrix2D] matrix, Optional[cvb.Point2D] translation)
 Define an affine matrix.
 
cvb.AffineMatrix2D identity ()
 The identity element.
 
None inverse (self)
 Gets the inverse of this affine transformation if possible.
 
None invert (self)
 Invert this affine transformation in-place if possible.
 

Properties

 is_translation = property
 bool: Checks if the matrix only describes a translation.
 
 matrix = property
 cvb.Matrix2D: Gets or sets the transformation part of the affine matrix.
 
 translation = property
 cvb.Point2D: Gets or sets the translation part of the affine matrix.
 

Detailed Description

Compacted affine matrix describing the Common Vision Blox coordinate system.

Constructor & Destructor Documentation

◆ AffineMatrix2D()

None AffineMatrix2D ( self,
Optional[cvb.Matrix2D] matrix,
Optional[cvb.Point2D] translation )

Define an affine matrix.

Parameters

matrix : Optional[cvb.Matrix2D] The transformation part.

translation : Optional[cvb.Point2D] The translation part.

Member Function Documentation

◆ identity()

cvb.AffineMatrix2D identity ( )

The identity element.

Returns

cvb.AffineMatrix2D An identity matrix.

◆ inverse()

None inverse ( self)

Gets the inverse of this affine transformation if possible.

Might cause division by zero.

◆ invert()

None invert ( self)

Invert this affine transformation in-place if possible.

Might cause division by zero.