e2D 1.4.16__tar.gz → 1.4.17__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: e2D
3
- Version: 1.4.16
3
+ Version: 1.4.17
4
4
  Summary: Python library for 2D games. Streamlines dev with keyboard/mouse input, vector calculations, color manipulation, and collision detection. Simplify game creation and unleash creativity!
5
5
  Home-page: https://github.com/marick-py/e2D
6
6
  Author: Riccardo Mariani
@@ -56,6 +56,10 @@ class Vector2D:
56
56
  @property
57
57
  def length_sqrd(self) -> float:
58
58
  return self.x ** 2 + self.y ** 2
59
+
60
+ @property
61
+ def inverse(self) -> "Vector2D":
62
+ return self.mult(-1)
59
63
 
60
64
  def floor(self, n=1) -> "Vector2D":
61
65
  return self.__floor__(n)
@@ -249,6 +249,10 @@ class Vector2D:
249
249
  @property
250
250
  def length_sqrd(self:"Vector2D") -> float:
251
251
  ...
252
+
253
+ @property
254
+ def inverse(self:"Vector2D") -> "Vector2D":
255
+ ...
252
256
 
253
257
  def floor(self:"Vector2D", n:"int|float|Vector2D"=1) -> "Vector2D":
254
258
  ...
@@ -451,6 +451,9 @@ class Color:
451
451
  def green(cls) -> "Color": return Color(0,255,0)
452
452
  @classmethod
453
453
  def blue(cls) -> "Color": return Color(0,0,255)
454
+
455
+ # @classmethod
456
+ # def (cls) -> "Color": return Color(0,0,255)
454
457
 
455
458
  @classmethod
456
459
  def randomize(cls) -> "Color":