[bindings] remove redundant signatures. batch1
This commit is contained in:
@@ -118,9 +118,6 @@ class Matrix(PyObjectBase):
|
||||
|
||||
def move(self, *args) -> None:
|
||||
"""
|
||||
move(vector) -> None
|
||||
move(x, y, z) -> None
|
||||
|
||||
Move the matrix along a vector, equivalent to left multiply the matrix
|
||||
by a pure translation transformation.
|
||||
|
||||
@@ -148,10 +145,6 @@ class Matrix(PyObjectBase):
|
||||
|
||||
def scale(self, *args) -> None:
|
||||
"""
|
||||
scale(vector) -> None
|
||||
scale(x, y, z) -> None
|
||||
scale(factor) -> None
|
||||
|
||||
Scale the first three rows of the matrix.
|
||||
|
||||
vector : Base.Vector
|
||||
@@ -169,8 +162,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def hasScale(self, tol: float = 0, /) -> ScaleType:
|
||||
"""
|
||||
hasScale(tol=0) -> ScaleType
|
||||
|
||||
Return an enum value of ScaleType. Possible values are:
|
||||
Uniform, NonUniformLeft, NonUniformRight, NoScaling or Other
|
||||
if it's not a scale matrix.
|
||||
@@ -182,8 +173,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def decompose(self) -> Tuple["Matrix", "Matrix", "Matrix", "Matrix"]:
|
||||
"""
|
||||
decompose() -> Base.Matrix, Base.Matrix, Base.Matrix, Base.Matrix
|
||||
|
||||
Return a tuple of matrices representing shear, scale, rotation and move.
|
||||
So that matrix = move * rotation * scale * shear.
|
||||
"""
|
||||
@@ -192,8 +181,6 @@ class Matrix(PyObjectBase):
|
||||
@no_args
|
||||
def nullify(self) -> None:
|
||||
"""
|
||||
nullify() -> None
|
||||
|
||||
Make this the null matrix.
|
||||
"""
|
||||
...
|
||||
@@ -202,8 +189,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def isNull(self) -> bool:
|
||||
"""
|
||||
isNull() -> bool
|
||||
|
||||
Check if this is the null matrix.
|
||||
"""
|
||||
...
|
||||
@@ -211,8 +196,6 @@ class Matrix(PyObjectBase):
|
||||
@no_args
|
||||
def unity(self) -> None:
|
||||
"""
|
||||
unity() -> None
|
||||
|
||||
Make this matrix to unity (4D identity matrix).
|
||||
"""
|
||||
...
|
||||
@@ -220,16 +203,12 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def isUnity(self, tol: float = 0.0, /) -> bool:
|
||||
"""
|
||||
isUnity([tol=0.0]) -> bool
|
||||
|
||||
Check if this is the unit matrix (4D identity matrix).
|
||||
"""
|
||||
...
|
||||
|
||||
def transform(self, vector: Vector, matrix2: "Matrix", /) -> None:
|
||||
"""
|
||||
transform(vector, matrix2) -> None
|
||||
|
||||
Transform the matrix around a given point.
|
||||
Equivalent to left multiply the matrix by T*M*T_inv, where M is `matrix2`, T the
|
||||
translation generated by `vector` and T_inv the inverse translation.
|
||||
@@ -244,8 +223,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def col(self, index: int, /) -> Vector:
|
||||
"""
|
||||
col(index) -> Base.Vector
|
||||
|
||||
Return the vector of a column, that is, the vector generated by the three
|
||||
first elements of the specified column.
|
||||
|
||||
@@ -256,8 +233,6 @@ class Matrix(PyObjectBase):
|
||||
|
||||
def setCol(self, index: int, vector: Vector, /) -> None:
|
||||
"""
|
||||
setCol(index, vector) -> None
|
||||
|
||||
Set the vector of a column, that is, the three first elements of the specified
|
||||
column by index.
|
||||
|
||||
@@ -270,8 +245,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def row(self, index: int, /) -> Vector:
|
||||
"""
|
||||
row(index) -> Base.Vector
|
||||
|
||||
Return the vector of a row, that is, the vector generated by the three
|
||||
first elements of the specified row.
|
||||
|
||||
@@ -282,8 +255,6 @@ class Matrix(PyObjectBase):
|
||||
|
||||
def setRow(self, index: int, vector: Vector, /) -> None:
|
||||
"""
|
||||
setRow(index, vector) -> None
|
||||
|
||||
Set the vector of a row, that is, the three first elements of the specified
|
||||
row by index.
|
||||
|
||||
@@ -297,16 +268,12 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def diagonal(self) -> Vector:
|
||||
"""
|
||||
diagonal() -> Base.Vector
|
||||
|
||||
Return the diagonal of the 3x3 leading principal submatrix as vector.
|
||||
"""
|
||||
...
|
||||
|
||||
def setDiagonal(self, vector: Vector, /) -> None:
|
||||
"""
|
||||
setDiagonal(vector) -> None
|
||||
|
||||
Set the diagonal of the 3x3 leading principal submatrix.
|
||||
|
||||
vector : Base.Vector
|
||||
@@ -315,8 +282,6 @@ class Matrix(PyObjectBase):
|
||||
|
||||
def rotateX(self, angle: float, /) -> None:
|
||||
"""
|
||||
rotateX(angle) -> None
|
||||
|
||||
Rotate around X axis.
|
||||
|
||||
angle : float
|
||||
@@ -326,8 +291,6 @@ class Matrix(PyObjectBase):
|
||||
|
||||
def rotateY(self, angle: float, /) -> None:
|
||||
"""
|
||||
rotateY(angle) -> None
|
||||
|
||||
Rotate around Y axis.
|
||||
|
||||
angle : float
|
||||
@@ -337,8 +300,6 @@ class Matrix(PyObjectBase):
|
||||
|
||||
def rotateZ(self, angle: float, /) -> None:
|
||||
"""
|
||||
rotateZ(angle) -> None
|
||||
|
||||
Rotate around Z axis.
|
||||
|
||||
angle : float
|
||||
@@ -357,9 +318,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def multiply(self, obj: Union["Matrix", Vector], /) -> Union["Matrix", Vector]:
|
||||
"""
|
||||
multiply(matrix) -> Base.Matrix
|
||||
multiply(vector) -> Base.Vector
|
||||
|
||||
Right multiply the matrix by the given object.
|
||||
If the argument is a vector, this is augmented to the 4D vector (`vector`, 1).
|
||||
|
||||
@@ -371,8 +329,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def multVec(self, vector: Vector, /) -> Vector:
|
||||
"""
|
||||
multVec(vector) -> Base.Vector
|
||||
|
||||
Compute the transformed vector using the matrix.
|
||||
|
||||
vector : Base.Vector
|
||||
@@ -382,8 +338,6 @@ class Matrix(PyObjectBase):
|
||||
@no_args
|
||||
def invert(self) -> None:
|
||||
"""
|
||||
invert() -> None
|
||||
|
||||
Compute the inverse matrix in-place, if possible.
|
||||
"""
|
||||
...
|
||||
@@ -392,8 +346,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def inverse(self) -> "Matrix":
|
||||
"""
|
||||
inverse() -> Base.Matrix
|
||||
|
||||
Compute the inverse matrix, if possible.
|
||||
"""
|
||||
...
|
||||
@@ -401,8 +353,6 @@ class Matrix(PyObjectBase):
|
||||
@no_args
|
||||
def transpose(self) -> None:
|
||||
"""
|
||||
transpose() -> None
|
||||
|
||||
Transpose the matrix in-place.
|
||||
"""
|
||||
...
|
||||
@@ -411,8 +361,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def transposed(self) -> "Matrix":
|
||||
"""
|
||||
transposed() -> Base.Matrix
|
||||
|
||||
Returns a transposed copy of this matrix.
|
||||
"""
|
||||
...
|
||||
@@ -421,8 +369,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def determinant(self) -> float:
|
||||
"""
|
||||
determinant() -> float
|
||||
|
||||
Compute the determinant of the matrix.
|
||||
"""
|
||||
...
|
||||
@@ -430,8 +376,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def isOrthogonal(self, tol: float = 1e-6, /) -> float:
|
||||
"""
|
||||
isOrthogonal(tol=1e-6) -> float
|
||||
|
||||
Checks if the matrix is orthogonal, i.e. M * M^T = k*I and returns
|
||||
the multiple of the identity matrix. If it's not orthogonal 0 is returned.
|
||||
|
||||
@@ -443,8 +387,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def submatrix(self, dim: int, /) -> "Matrix":
|
||||
"""
|
||||
submatrix(dim) -> Base.Matrix
|
||||
|
||||
Get the leading principal submatrix of the given dimension.
|
||||
The (4 - `dim`) remaining dimensions are completed with the
|
||||
corresponding identity matrix.
|
||||
@@ -458,8 +400,6 @@ class Matrix(PyObjectBase):
|
||||
@constmethod
|
||||
def analyze(self) -> str:
|
||||
"""
|
||||
analyze() -> str
|
||||
|
||||
Analyzes the type of transformation.
|
||||
"""
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user