323 def __mul__(self, scalar): |
323 def __mul__(self, scalar): |
324 return Matrix3x3([ |
324 return Matrix3x3([ |
325 x * scalar |
325 x * scalar |
326 for x in self.values |
326 for x in self.values |
327 ]) |
327 ]) |
|
328 def is_mirrored(self): |
|
329 return self.determinant() < 0 |
328 |
330 |
329 def complete_matrix(matrix, anchor): |
331 def complete_matrix(matrix, anchor): |
330 ''' |
332 ''' |
331 Combines a 3×3 matrix and an anchor vertex into a full 4×4 |
333 Combines a 3×3 matrix and an anchor vertex into a full 4×4 |
332 transformation matrix. |
334 transformation matrix. |