Double precision 2x2 matrix class. More...
Inherits object.
Public Member Functions | |
cvb.Matrix2D | create () |
Construct a 2x2 matrix. More... | |
cvb.Matrix2D | create (float a11, float a12, float a21, float a22) |
cvb.Matrix2D | create (cvb.Angle rotation, float scale) |
Construct a 2x2 matrix. More... | |
cvb.Matrix2D | create (float scale) |
Construct a 2x2 matrix. More... | |
cvb.Matrix2D | create (float scale_x, float scale_y) |
Construct a 2x2 matrix. More... | |
cvb.Matrix2D | create (cvb.Point2D column1, cvb.Point2D column2) |
Construct a 2x2 matrix. More... | |
cvb.Matrix2D | create (List[float] values) |
Construct a 2x2 matrix. More... | |
cvb.Matrix2D | identity () |
The identity element. More... | |
None | inverse (self) |
Gets the inverse of this matrix if possible. More... | |
None | invert (self) |
Inverts this matrix in-place 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 | ( | ) |
cvb.Matrix2D create | ( | cvb.Angle | rotation, |
float | scale | ||
) |
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
cvb.Matrix2D create | ( | cvb.Point2D | column1, |
cvb.Point2D | column2 | ||
) |
Construct a 2x2 matrix.
column1 : cvb.Point2D Column vector one.
column2 : cvb.Point2D Columns vector two.
cvb.Matrix2D A 2D matrix
cvb.Matrix2D create | ( | float | a11, |
float | a12, | ||
float | a21, | ||
float | a22 | ||
) |
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
cvb.Matrix2D create | ( | float | scale | ) |
Construct a 2x2 matrix.
scale : float Scale factor to create the matrix for
cvb.Matrix2D A 2D matrix
cvb.Matrix2D create | ( | float | scale_x, |
float | scale_y | ||
) |
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
cvb.Matrix2D create | ( | List[float] | values | ) |
Construct a 2x2 matrix.
values : List[float] A list containing exactly 4 elements,
cvb.Matrix2D A 2D matrix.
cvb.Matrix2D identity | ( | ) |
None inverse | ( | self | ) |
Gets the inverse of this matrix if possible.
Might cause division by zero.
None invert | ( | self | ) |
Inverts this matrix in-place if possible.
Might cause division by zero.