# HG changeset patch # User Thibaut Girka # Date 1313997036 -7200 # Node ID c435e83a8e700e76aa904da77784a23c059f11e8 # Parent 7195aaf95f6e49473d20ba00b6482506992458ac Fix Matrix.rotate_y diff --git a/pytouhou/utils/matrix.py b/pytouhou/utils/matrix.py --- a/pytouhou/utils/matrix.py +++ b/pytouhou/utils/matrix.py @@ -47,12 +47,11 @@ class Matrix(object): def rotate_y(self, angle): - #TODO: check d1 = self.data cos_a = cos(angle) sin_a = sin(angle) - d1[0][:], d1[2][:] = ([cos_a * d1[0][i] - sin_a * d1[2][i] for i in range(4)], - [sin_a * d1[0][i] + cos_a * d1[2][i] for i in range(4)]) + d1[0][:], d1[2][:] = ([cos_a * d1[0][i] + sin_a * d1[2][i] for i in range(4)], + [- sin_a * d1[0][i] + cos_a * d1[2][i] for i in range(4)]) def rotate_z(self, angle):