def test_projection_from_matrix_4(self, data):
     point, normal, direct, persp = data
     P0 = t.projection_matrix(
         point, normal, perspective=persp, pseudo=True)
     result = t.projection_from_matrix(P0, pseudo=True)
     P1 = t.projection_matrix(*result)
     assert_equal(t.is_same_transform(P0, P1), True)
 def test_projection_from_matrix_4(self, data):
     point, normal, direct, persp = data
     P0 = t.projection_matrix(
         point, normal, perspective=persp, pseudo=True)
     result = t.projection_from_matrix(P0, pseudo=True)
     P1 = t.projection_matrix(*result)
     assert_equal(t.is_same_transform(P0, P1), True)
Beispiel #3
0
 def test_projection_from_matrix_4(self):
     P0 = t.projection_matrix(self.point,
                              self.normal,
                              perspective=self.persp,
                              pseudo=True)
     result = t.projection_from_matrix(P0, pseudo=True)
     P1 = t.projection_matrix(*result)
     assert_equal(t.is_same_transform(P0, P1), True)
Beispiel #4
0
 def test_projection_from_matrix_2(self):
     P0 = t.projection_matrix(self.point, self.normal, self.direct)
     result = t.projection_from_matrix(P0)
     P1 = t.projection_matrix(*result)
     assert_equal(t.is_same_transform(P0, P1), True)
 def test_projection_from_matrix_4(self):
     P0 = t.projection_matrix(self.point, self.normal,
                              perspective=self.persp, pseudo=True)
     result = t.projection_from_matrix(P0, pseudo=True)
     P1 = t.projection_matrix(*result)
     assert_equal(t.is_same_transform(P0, P1), True)
 def test_projection_from_matrix_2(self):
     P0 = t.projection_matrix(self.point, self.normal, self.direct)
     result = t.projection_from_matrix(P0)
     P1 = t.projection_matrix(*result)
     assert_equal(t.is_same_transform(P0, P1), True)