[bindings] Format with yapf (precommit will reformat)

This commit is contained in:
Frank Martinez
2025-10-07 12:07:42 -05:00
parent d4d7cabdc5
commit 0d0689341b
254 changed files with 885 additions and 311 deletions

View File

@@ -8,6 +8,7 @@ from Vector import Vector
from Matrix import Matrix
from typing import overload, Any, Final, Tuple, Union
@export(
TwinPointer="BoundBox3d",
Constructor=True,
@@ -136,11 +137,17 @@ class BoundBox(PyObjectBase):
...
@overload
def add(self, minMax: Vector, /) -> None: ...
def add(self, minMax: Vector, /) -> None:
...
@overload
def add(self, minMax: Tuple[float, float, float], /) -> None: ...
def add(self, minMax: Tuple[float, float, float], /) -> None:
...
@overload
def add(self, x: float, y: float, z: float, /) -> None: ...
def add(self, x: float, y: float, z: float, /) -> None:
...
def add(self, *args: Any, **kwargs: Any) -> None:
"""
add(minMax) -> None
@@ -186,9 +193,13 @@ class BoundBox(PyObjectBase):
...
@overload
def closestPoint(self, point: Vector, /) -> Vector: ...
def closestPoint(self, point: Vector, /) -> Vector:
...
@overload
def closestPoint(self, x: float, y: float, z: float, /) -> Vector: ...
def closestPoint(self, x: float, y: float, z: float, /) -> Vector:
...
@constmethod
def closestPoint(self, *args: Any, **kwargs: Any) -> Vector:
"""
@@ -209,14 +220,18 @@ class BoundBox(PyObjectBase):
...
@overload
def intersect(self, boundBox2: "BoundBox", /) -> bool: ...
def intersect(self, boundBox2: "BoundBox", /) -> bool:
...
@overload
def intersect(
self,
base: Union[Vector, Tuple[float, float, float]],
dir: Union[Vector, Tuple[float, float, float]],
/,
) -> bool: ...
) -> bool:
...
def intersect(self, *args: Any) -> bool:
"""
intersect(boundBox2) -> bool
@@ -279,11 +294,17 @@ class BoundBox(PyObjectBase):
...
@overload
def move(self, displacement: Vector, /) -> None: ...
def move(self, displacement: Vector, /) -> None:
...
@overload
def move(self, displacement: Tuple[float, float, float], /) -> None: ...
def move(self, displacement: Tuple[float, float, float], /) -> 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: Any, **kwargs: Any) -> None:
"""
move(displacement) -> None
@@ -303,11 +324,17 @@ class BoundBox(PyObjectBase):
...
@overload
def scale(self, factor: Vector, /) -> None: ...
def scale(self, factor: Vector, /) -> None:
...
@overload
def scale(self, factor: Tuple[float, float, float], /) -> None: ...
def scale(self, factor: Tuple[float, float, float], /) -> None:
...
@overload
def scale(self, x: float, y: float, z: float, /) -> None: ...
def scale(self, x: float, y: float, z: float, /) -> None:
...
def scale(self, *args: Any, **kwargs: Any) -> None:
"""
scale(factor) -> None
@@ -351,11 +378,17 @@ class BoundBox(PyObjectBase):
...
@overload
def isInside(self, object: Vector, /) -> bool: ...
def isInside(self, object: Vector, /) -> bool:
...
@overload
def isInside(self, object: "BoundBox", /) -> bool: ...
def isInside(self, object: "BoundBox", /) -> bool:
...
@overload
def isInside(self, x: float, y: float, z: float, /) -> bool: ...
def isInside(self, x: float, y: float, z: float, /) -> bool:
...
def isInside(self, *args: Any) -> bool:
"""
isInside(object) -> bool