maxon.SqMat3¶
Description¶
A 3x3 matrix
Attributes¶
Methods Signature¶
Returns a vector composed by length of each component. |
|
Returns a normalized matrix. |
|
Returns the transposed matrix. |
|
Normalize all vectors of the matrix. |
|
Defines the default identity matrix |
|
|
Initializes a new three components square matrix.
|
Methods Definition¶
-
SqMat3.
GetLength
()¶ Returns a vector composed by length of each component.
- Returns
The matrix length.
- Return type
-
SqMat3.
GetNormalized
()¶ Returns a normalized matrix.
- Returns
The normalized matrix.
- Return type
-
SqMat3.
GetTransposed
()¶ Returns the transposed matrix.
- Returns
The transposed matrix.
- Return type
-
SqMat3.
Normalize
()¶ Normalize all vectors of the matrix.
-
SqMat3.
SetIdentity
()¶ Defines the default identity matrix
-
SqMat3.
__init__
(v1_in=None, v2_in=None, v3_in=None)¶ - Initializes a new three components square matrix.When passing no arguments, the identity matrix will be constructed. The type can otherwisebe only instantiated three at the moment, setting all three components individually.
- ..note:
This type should not be instantiated directly as this can lead to crashes, use instead the type
maxon.Matrix
.
- Parameters
v1_in (Optional[
maxon.Vec3
]) – If v1_in is the only passed argument, set this to v1_in/v2_in/v3_in components. Otherwise, set the v1 component.v2_in (Optional[
maxon.Vec3
]) – The v2 component. Can only be passed if v3_in is also defined.v3_in (Optional[
maxon.Vec3
]) – The v3 component.