[bindings] Format with yapf (precommit will reformat)
This commit is contained in:
@@ -8,6 +8,7 @@ from PyObjectBase import PyObjectBase
|
||||
from enum import IntEnum
|
||||
from typing import overload, Union, Tuple, Sequence
|
||||
|
||||
|
||||
class ScaleType(IntEnum):
|
||||
Other = -1
|
||||
NoScaling = 0
|
||||
@@ -15,6 +16,7 @@ class ScaleType(IntEnum):
|
||||
NonUniformLeft = 2
|
||||
Uniform = 3
|
||||
|
||||
|
||||
@export(
|
||||
TwinPointer="Matrix4D",
|
||||
Constructor=True,
|
||||
@@ -107,9 +109,13 @@ 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(vector) -> None
|
||||
@@ -129,11 +135,17 @@ 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(vector) -> None
|
||||
@@ -335,9 +347,13 @@ 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