Add project_ortho() function and tests
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,14 @@
|
||||
from matrixmania.compute import project_ortho
|
||||
|
||||
def test_project_ortho_no_scale():
|
||||
point = (1.0, 2.0, 3.0)
|
||||
result = project_ortho(point)
|
||||
expected = (1.0, 2.0)
|
||||
assert result == expected
|
||||
|
||||
|
||||
def test_project_ortho_with_scale():
|
||||
point = (1.0, 2.0, 3.0)
|
||||
result = project_ortho(point, scale=100)
|
||||
expected = (100.0, 200.0)
|
||||
assert result == expected
|
||||
Reference in New Issue
Block a user