Fixed Vector arithmetic

This commit is contained in:
Daniel 2024-08-23 15:02:35 +02:00
parent 49562b7a15
commit 53816ccd88
No known key found for this signature in database
GPG Key ID: F97A473A770892FC
1 changed files with 6 additions and 7 deletions

View File

@ -3815,7 +3815,7 @@ class Vector2D():
def __eq__(self, other: Vector2D) -> bool:
"""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:
"""Returns `True` if the value for any axis is different."""
@ -3825,7 +3825,7 @@ class Vector2D():
...
def __sub__(self, other: Vector2D) -> Vector2D: ...
def __truediv__(self, other: Vector2D): ...
def __truediv__(self, other: float) -> Vector2D: ...
# endregion
@ -3849,8 +3849,7 @@ class Vector3D():
def __init__(self, x=0.0, y=0.0, z=0.0): ...
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:
"""Computes the distance between two vectors."""
@ -3891,11 +3890,11 @@ class Vector3D():
def __add__(self, other: Vector3D) -> Vector3D: ...
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 __str__(self) -> str: ...
def __sub__(self, other: Vector3D): ...
def __truediv__(self, other: Vector3D): ...
def __sub__(self, other: Vector3D) -> Vector3D: ...
def __truediv__(self, other: float) -> Vector3D: ...
# endregion