FL.Matrix
Matrix
Matrix - class to represent planar transformations
Matrix is used to perform following transformations: x1 = x * a + y * b + e y1 = x * c + y * d + f
CONSTRUCTOR: Matrix() - generic constructor, creates a Matrix that makes no change to coordinates Matrix(Matrix) - copy constructor Matrix([a, b, c, d, e, f]) - creates a Matrix and assigns coordinates from the list of float numbers Matrix(a, b, c, d, e, f) - creates a Matrix and assigns coordinates from float numbers
ATTRIBUTES: a, b, c, d, e, f (float) - Matrix parameters
OPERATIONS: add - Matrix must be second operand, all parameters are added subtract - Matrix must be second operand, all parameters are subtracted multiply (with Matrix) - matrixes are multiplied multiply (with float number) - all parameters are scaled by the operand
METHODS Assign - assigns new values to a Matrix, uses the same syntax as in constructors Add(Matrix m) - adds values of the Matrix m to current matrix Sub(Matrix m) - subtracts values of the Matrix m from current matrix Mul(float s) - mutiplies Matrix's parameters to s value Transform(Matrix m) - applies Matrix m transformation to the current Matrix
Native bases: object
Captured native MRO: Matrix, object
Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
Add |
function | (self, m: Any) -> Any |
Adds values of the Matrix m to current matrix |
Assign |
function | (self, *args: Any, **kwargs: Any) -> Any |
Assigns new values to a Matrix, uses the same syntax as in constructors |
Mul |
function | (self, s: float) -> Any |
Mutiplies Matrix's parameters to s value |
Sub |
function | (self, m: Any) -> Any |
Subtracts values of the Matrix m from current matrix |
Transform |
function | (self, m: Any) -> Any |
Applies Matrix m transformation to the current Matrix |
__init__ |
function | (self, /, *args: Any, **kwargs: Any) -> None |
Initialize self. (shared captured text) |
a |
attribute | Any |
|
b |
attribute | Any |
|
c |
attribute | Any |
|
d |
attribute | Any |
|
e |
attribute | Any |
|
f |
attribute | Any |