.git neue Ebene zugeordnet
This commit is contained in:
1 parent
518ef5a14a
commit
db88d3ef07
6 files changed
+290
No files matched your search
@@ -0,0 +1,24 @@
|
||||
from matrixmania import project_ortho
|
||||
|
||||
def test_project_ortho_without_scale() -> None:
|
||||
"""Orthogonal projection ignores z when scale is omitted."""
|
||||
# Arrange
|
||||
point = (1.0, 2.0, 3.0)
|
||||
|
||||
# Act
|
||||
result = project_ortho(point)
|
||||
|
||||
# Assert
|
||||
assert result == (1.0, 2.0)
|
||||
|
||||
def test_project_ortho_with_scale() -> None:
|
||||
"""Orthogonal projection scales x and y and ignores z."""
|
||||
# Arrange
|
||||
point = (1.0, 2.0, 3.0)
|
||||
scale = 100
|
||||
|
||||
# Act
|
||||
result = (project_ortho(point, scale=scale))
|
||||
|
||||
# Assert
|
||||
assert result == (100.0, 200.0)
|
||||
Reference in new issue
Block a user