Files
matrixmania/test/test_matrixmania/test_projection.py
T

16 lines
386 B
Python

import pytest
from matrixmania.compute import project_ortho
def test_project_ortho_default():
"""Projektionsfunktion ohne Skalierung"""
point = (1.0, 2.0, 3.0)
assert project_ortho(point) == (1.0, 2.0)
def test_project_ortho_scaled():
"""Projektionsfunktion mit Skalierung"""
point = (1.0, 2.0, 3.0)
assert project_ortho(point, scale=100) == (100.0, 200.0)