Skip to content

Commit af6cd9e

Browse files
authored
Update vector3_for_2d_rendering.py
1 parent 7b13ddc commit af6cd9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphics/vector3_for_2d_rendering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def convert_to_2d(x: float, y: float, z: float, scale: float,
1818
"""
1919
if not all(isinstance(val, (float, int)) for val in locals().values()):
2020
raise TypeError("Input values must either be float or int: "
21-
f"{list(locals().values())}")
21+
f"{list(locals().values())}")
2222
projected_x = ((x * distance) / (z + distance)) * scale
2323
projected_y = ((y * distance) / (z + distance)) * scale
2424
return projected_x, projected_y
@@ -40,7 +40,7 @@ def rotate(x: float, y: float, z: float, axis: str,
4040
del input_variables["axis"]
4141
if not all(isinstance(val, (float, int)) for val in input_variables.values()):
4242
raise TypeError("Input values except axis must either be float or int: "
43-
f"{list(input_variables.values())}")
43+
f"{list(input_variables.values())}")
4444
if not isinstance(axis, str):
4545
raise TypeError("Axis must be a str")
4646
angle = angle / 450 * 180 / math.pi

0 commit comments

Comments
 (0)