示例#1
0
    def test_rotation(self):
        matrix = Matrix33.rotation(90)

        vector = matrix.transform(Vector2(1.0, 1.0))

        # Fix floating point issues.
        x, y = ceil(vector.x), ceil(vector.y)

        self.assertEqual((x, y), (-1.0, 1.0))