MatrixMania/test/test_projection.py

11 lines
266 B
Python

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)