Double precision 2x2 matrix class. More...
Inherits object.
Public Member Functions | |
cvb.Matrix2D | create () |
Construct a 2x2 matrix. More... | |
cvb.Matrix2D | identity () |
The identity element. More... | |
None | invert (self) |
Inverts this matrix if possible. More... | |
Double precision 2x2 matrix class.
Supports the same arguments as cvb.Matrix2D.create.
*args : Any Parameters like cvb.Matrix2D.create.
**kwargs : Any Parameters like cvb.Matrix2D.create.
cvb.Matrix2D create | ( | ) |
Construct a 2x2 matrix.
cvb.Matrix2D A 2D matrix
a11 : float Top left matrix element.
a12 : float Top right matrix element.
a21 : float Bottom left matrix element.
a22 : float Bottom right matrix element.
cvb.Matrix2D A 2D matrix
Construct a 2x2 matrix.
rotation : cvb.Angle Rotation angle to create the matrix for.
scale : float Scale factor to create the matrix for
cvb.Matrix2D A 2D matrix
Construct a 2x2 matrix.
scale : float Scale factor to create the matrix for
cvb.Matrix2D A 2D matrix
Construct a 2x2 matrix.
scale_x : float Scale factor in X direction to create the matrix.
scale_y : float Scale factor in Y direction to create the matrix.
cvb.Matrix2D A 2D matrix
Construct a 2x2 matrix.
column1 : cvb.Point2D Column vector one.
column2 : cvb.Point2D Columns vector two.
cvb.Matrix2D A 2D matrix
Construct a 2x2 matrix.
values : List[float] A list containing exactly 4 elements,
cvb.Matrix2D A 2D matrix.
cvb.Matrix2D identity | ( | ) |
None invert | ( | self | ) |
Inverts this matrix if possible.
Might cause division by zero.