blueloveTH пре 2 година
родитељ
комит
dc48d4210e
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10 0
      docs/modules/linalg.md

+ 10 - 0
docs/modules/linalg.md

@@ -29,6 +29,16 @@ class vec2(_StructLike['vec2']):
     def rotate(self, radians: float) -> vec2: ...
     def rotate_(self, radians: float) -> None: ...
 
+    @staticmethod
+    def angle(__from: vec2, __to: vec2) -> float:
+        """Returns the angle in radians between vectors `from` and `to`.
+
+        The result range is `[-pi, pi]`.
+        
+        + if y axis is top to bottom, positive value means clockwise
+        + if y axis is bottom to top, positive value means counter-clockwise
+        """
+
 class vec3(_StructLike['vec3']):
     x: float
     y: float