CVBpy 14.0
AffineMatrix2D Class Reference

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

Inherits object.

Public Member Functions

cvb.AffineMatrix2D identity ()
 The identity element. More...
 
None invert (self)
 Invert this affine matrix if possible. More...
 

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.

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.

◆ invert()

None invert (   self)

Invert this affine matrix if possible.

Might cause division by zero.