projection & 3Drot
This commit is contained in:
1 parent
87feb62121
commit
e4d36ad733
4 files changed
+106
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import pytest
|
||||
from matrixmania.compute import project_ortho
|
||||
|
||||
|
||||
def test_project_ortho_default_scale():
|
||||
# Test ohne Angabe von scale (Standardwert = 1)
|
||||
point = (1.0, 2.0, 3.0)
|
||||
result = project_ortho(point)
|
||||
assert result == (1.0, 2.0)
|
||||
|
||||
|
||||
def test_project_ortho_with_scale():
|
||||
# Test mit scale = 100
|
||||
point = (1.0, 2.0, 3.0)
|
||||
result = project_ortho(point, scale=100)
|
||||
assert result == (100.0, 200.0)
|
||||
Reference in new issue
Block a user