We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91b34d9 commit d99877fCopy full SHA for d99877f
UnityPy/classes/math.py
@@ -5,7 +5,6 @@
5
"""
6
7
from attrs import define
8
-from typing import TypeAlias
9
10
11
@define(slots=True)
@@ -38,8 +37,8 @@ def __repr__(self) -> str:
38
37
return f"Vector4f({self.x}, {self.y}, {self.z}, {self.w})"
39
40
41
-float3: TypeAlias = Vector3f
42
-float4: TypeAlias = Vector4f
+float3 = Vector3f
+float4 = Vector4f
43
44
45
class Quaternionf(Vector4f):
@@ -115,3 +114,16 @@ def rgba(self, value: int):
115
114
self.g = ((value >> 16) & 0xFF) / 255
116
self.b = ((value >> 8) & 0xFF) / 255
117
self.a = (value & 0xFF) / 255
+
118
119
+__all__ = (
120
+ "Vector2f",
121
+ "Vector3f",
122
+ "Vector4f",
123
+ "Quaternionf",
124
+ "Matrix3x4f",
125
+ "Matrix4x4f",
126
+ "ColorRGBA",
127
+ "float3",
128
+ "float4",
129
+)
0 commit comments