|
|
@@ -20,7 +20,12 @@ class vec2(_StructLike['vec2']):
|
|
|
def __init__(self, x: float, y: float) -> None: ...
|
|
|
def __add__(self, other: vec2) -> vec2: ...
|
|
|
def __sub__(self, other: vec2) -> vec2: ...
|
|
|
+
|
|
|
+ @overload
|
|
|
def __mul__(self, other: float) -> vec2: ...
|
|
|
+ @overload
|
|
|
+ def __mul__(self, other: vec2) -> vec2: ...
|
|
|
+
|
|
|
def __rmul__(self, other: float) -> vec2: ...
|
|
|
def __truediv__(self, other: float) -> vec2: ...
|
|
|
def dot(self, other: vec2) -> float: ...
|
|
|
@@ -56,7 +61,12 @@ class vec3(_StructLike['vec3']):
|
|
|
def __init__(self, x: float, y: float, z: float) -> None: ...
|
|
|
def __add__(self, other: vec3) -> vec3: ...
|
|
|
def __sub__(self, other: vec3) -> vec3: ...
|
|
|
+
|
|
|
+ @overload
|
|
|
def __mul__(self, other: float) -> vec3: ...
|
|
|
+ @overload
|
|
|
+ def __mul__(self, other: vec3) -> vec3: ...
|
|
|
+
|
|
|
def __rmul__(self, other: float) -> vec3: ...
|
|
|
def __truediv__(self, other: float) -> vec3: ...
|
|
|
def dot(self, other: vec3) -> float: ...
|
|
|
@@ -77,7 +87,12 @@ class vec4(_StructLike['vec4']):
|
|
|
def __init__(self, x: float, y: float, z: float, w: float) -> None: ...
|
|
|
def __add__(self, other: vec4) -> vec4: ...
|
|
|
def __sub__(self, other: vec4) -> vec4: ...
|
|
|
+
|
|
|
+ @overload
|
|
|
def __mul__(self, other: float) -> vec4: ...
|
|
|
+ @overload
|
|
|
+ def __mul__(self, other: vec4) -> vec4: ...
|
|
|
+
|
|
|
def __rmul__(self, other: float) -> vec4: ...
|
|
|
def __truediv__(self, other: float) -> vec4: ...
|
|
|
def dot(self, other: vec4) -> float: ...
|
|
|
@@ -140,7 +155,11 @@ class mat3x3(_StructLike['mat3x3']):
|
|
|
# affine transformations
|
|
|
@staticmethod
|
|
|
def trs(t: vec2, r: float, s: vec2) -> mat3x3: ...
|
|
|
+
|
|
|
def copy_trs_(self, t: vec2, r: float, s: vec2) -> None: ...
|
|
|
+ def copy_t_(self, t: vec2) -> None: ...
|
|
|
+ def copy_r_(self, r: float) -> None: ...
|
|
|
+ def copy_s_(self, s: vec2) -> None: ...
|
|
|
|
|
|
def _t(self) -> vec2: ...
|
|
|
def _r(self) -> float: ...
|