[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -8,7 +8,6 @@ from PyObjectBase import PyObjectBase
|
||||
from enum import IntEnum
|
||||
from typing import overload, Union, Tuple, Sequence
|
||||
|
||||
|
||||
class ScaleType(IntEnum):
|
||||
Other = -1
|
||||
NoScaling = 0
|
||||
@@ -16,7 +15,6 @@ class ScaleType(IntEnum):
|
||||
NonUniformLeft = 2
|
||||
Uniform = 3
|
||||
|
||||
|
||||
@export(
|
||||
TwinPointer="Matrix4D",
|
||||
Constructor=True,
|
||||
@@ -109,13 +107,9 @@ class Matrix(PyObjectBase):
|
||||
"""The matrix elements."""
|
||||
|
||||
@overload
|
||||
def move(self, vector: Vector, /) -> None:
|
||||
...
|
||||
|
||||
def move(self, vector: Vector, /) -> None: ...
|
||||
@overload
|
||||
def move(self, x: float, y: float, z: float, /) -> None:
|
||||
...
|
||||
|
||||
def move(self, x: float, y: float, z: float, /) -> None: ...
|
||||
def move(self, *args) -> None:
|
||||
"""
|
||||
Move the matrix along a vector, equivalent to left multiply the matrix
|
||||
@@ -132,17 +126,11 @@ class Matrix(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def scale(self, vector: Vector, /) -> None:
|
||||
...
|
||||
|
||||
def scale(self, vector: Vector, /) -> None: ...
|
||||
@overload
|
||||
def scale(self, x: float, y: float, z: float, /) -> None:
|
||||
...
|
||||
|
||||
def scale(self, x: float, y: float, z: float, /) -> None: ...
|
||||
@overload
|
||||
def scale(self, factor: float, /) -> None:
|
||||
...
|
||||
|
||||
def scale(self, factor: float, /) -> None: ...
|
||||
def scale(self, *args) -> None:
|
||||
"""
|
||||
Scale the first three rows of the matrix.
|
||||
@@ -308,13 +296,9 @@ class Matrix(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def multiply(self, matrix: "Matrix", /) -> "Matrix":
|
||||
...
|
||||
|
||||
def multiply(self, matrix: "Matrix", /) -> "Matrix": ...
|
||||
@overload
|
||||
def multiply(self, vector: Vector, /) -> Vector:
|
||||
...
|
||||
|
||||
def multiply(self, vector: Vector, /) -> Vector: ...
|
||||
@constmethod
|
||||
def multiply(self, obj: Union["Matrix", Vector], /) -> Union["Matrix", Vector]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user