Beispiel #1
0
    def test_shearing_yz(self):

        transform = shearing(yz=1)

        p = point(2, 3, 4)

        p_out = point(2, 7, 4)

        self.assertEqual(transform * p, p_out,
                         'Shearing in yz direction failed')
Beispiel #2
0
    def test_shearing_zy(self):

        transform = shearing(zy=1)

        p = point(2, 3, 4)

        p_out = point(2, 3, 7)

        self.assertEqual(transform * p, p_out,
                         'Shearing in zy direction failed')
Beispiel #3
0
    def test_shearing_xy(self):

        transform = shearing(xy=1)

        p = point(2, 3, 4)

        p_out = point(5, 3, 4)

        self.assertEqual(transform * p, p_out,
                         'shearing in xy direction failed')