示例#1
0
 def test_transformation_interval(self, points, params):
     manual_transformation = RotationZX()
     auto_transformation = Composition(RotationZ(), RotationX())
     self.assertSound(manual_transformation.transform(points, params),
                      params,
                      partial(manual_transformation.transform, points))
     self.assertSound(auto_transformation.transform(points, params), params,
                      partial(auto_transformation.transform, points))
示例#2
0
 def test_transformation_float(self, points, params):
     manual_transformation = RotationZX()
     auto_transformation = Composition(RotationZ(), RotationX())
     expected = manual_transformation.transform(points, params)
     actual = auto_transformation.transform(points, params)
     self.assertAlmostEqualNumpy(expected, actual)