added projection functin
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from matrixmania import project_ortho
|
||||
|
||||
def test_projection_1():
|
||||
point = (1.0, 2.0, 3.0)
|
||||
assert project_ortho(point) == (1.0, 2.0)
|
||||
|
||||
def test_projection_2():
|
||||
point = (1.0, 2.0, 3.0)
|
||||
scale = 100
|
||||
assert project_ortho(point, scale) == (100.0, 200.0)
|
||||
Reference in New Issue
Block a user