Fixed Vector arithmetic
This commit is contained in:
parent
49562b7a15
commit
53816ccd88
|
@ -3815,7 +3815,7 @@ class Vector2D():
|
||||||
def __eq__(self, other: Vector2D) -> bool:
|
def __eq__(self, other: Vector2D) -> bool:
|
||||||
"""Returns `True` if values for every axis are equal."""
|
"""Returns `True` if values for every axis are equal."""
|
||||||
|
|
||||||
def __mul__(self, other: Vector2D) -> float: ...
|
def __mul__(self, other: float) -> Vector2D: ...
|
||||||
|
|
||||||
def __ne__(self, bool: Vector2D) -> bool:
|
def __ne__(self, bool: Vector2D) -> bool:
|
||||||
"""Returns `True` if the value for any axis is different."""
|
"""Returns `True` if the value for any axis is different."""
|
||||||
|
@ -3825,7 +3825,7 @@ class Vector2D():
|
||||||
...
|
...
|
||||||
|
|
||||||
def __sub__(self, other: Vector2D) -> Vector2D: ...
|
def __sub__(self, other: Vector2D) -> Vector2D: ...
|
||||||
def __truediv__(self, other: Vector2D): ...
|
def __truediv__(self, other: float) -> Vector2D: ...
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
|
|
||||||
|
@ -3849,8 +3849,7 @@ class Vector3D():
|
||||||
def __init__(self, x=0.0, y=0.0, z=0.0): ...
|
def __init__(self, x=0.0, y=0.0, z=0.0): ...
|
||||||
|
|
||||||
def cross(self, vector: Vector3D) -> Vector3D:
|
def cross(self, vector: Vector3D) -> Vector3D:
|
||||||
"""Computes the cross product between two vectors.
|
"""Computes the cross product between two vectors."""
|
||||||
"""
|
|
||||||
|
|
||||||
def distance(self, vector: Vector3D) -> float:
|
def distance(self, vector: Vector3D) -> float:
|
||||||
"""Computes the distance between two vectors."""
|
"""Computes the distance between two vectors."""
|
||||||
|
@ -3891,11 +3890,11 @@ class Vector3D():
|
||||||
|
|
||||||
def __add__(self, other: Vector3D) -> Vector3D: ...
|
def __add__(self, other: Vector3D) -> Vector3D: ...
|
||||||
def __eq__(self, other: Vector3D) -> bool: ...
|
def __eq__(self, other: Vector3D) -> bool: ...
|
||||||
def __mul__(self, other: Vector3D | float) -> Vector3D: ...
|
def __mul__(self, other: float) -> Vector3D: ...
|
||||||
def __ne__(self, other: Vector3D) -> bool: ...
|
def __ne__(self, other: Vector3D) -> bool: ...
|
||||||
def __str__(self) -> str: ...
|
def __str__(self) -> str: ...
|
||||||
def __sub__(self, other: Vector3D): ...
|
def __sub__(self, other: Vector3D) -> Vector3D: ...
|
||||||
def __truediv__(self, other: Vector3D): ...
|
def __truediv__(self, other: float) -> Vector3D: ...
|
||||||
# endregion
|
# endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue