Orthogonale Projektion und 3D_rot mit Tests ergänzt
This commit is contained in:
1 parent
b5f5a154ba
commit
6ededbc4c2
7 files changed
+214
-5
No files matched your search
@@ -0,0 +1,26 @@
|
||||
from matrixmania import project_ortho
|
||||
|
||||
|
||||
def test_project_ortho_without_scale():
|
||||
# Arrange
|
||||
point = (1.0, 2.0, 3.0)
|
||||
expected = (1.0, 2.0)
|
||||
|
||||
# Act
|
||||
result = project_ortho(point)
|
||||
|
||||
# Assert
|
||||
assert result == expected
|
||||
|
||||
|
||||
def test_project_ortho_with_scale_100():
|
||||
# Arrange
|
||||
point = (1.0, 2.0, 3.0)
|
||||
scale = 100
|
||||
expected = (100.0, 200.0)
|
||||
|
||||
# Act
|
||||
result = project_ortho(point, scale=scale)
|
||||
|
||||
# Assert
|
||||
assert result == expected
|
||||
Reference in new issue
Block a user