MatrixMania/test/test_matrixmania/test_projection.py
2025-11-13 14:36:46 +01:00

14 lines
329 B
Python

import pytest
from src.matrixmania.compute import project_ortho
def test_projection():
point = (1.0, 2.0, 3.0)
expected = (1.0, 2.0)
assert project_ortho(point) == expected
def test_projection_with_scale():
point = (1.0, 2.0, 3.0)
expected = (100.0, 200.0)
assert project_ortho(point, 100) == expected