Mercurial > touhou
comparison pytouhou/utils/matrix.pxd @ 435:878273a984c4
Improve Matrix representation, using float[16] instead of imbricated python lists.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 07 Aug 2013 11:34:40 +0200 |
parents | d8630c086926 |
children | 6e3b3d5d4691 |
comparison
equal
deleted
inserted
replaced
434:18e4b121646b | 435:878273a984c4 |
---|---|
1 cdef float* matrix_to_floats(Matrix self) | 1 cdef class Matrix: |
2 cdef float data[16] | |
2 | 3 |
3 cdef class Matrix: | 4 cdef void flip(self) nogil |
4 cdef public list data | 5 cdef void scale(self, float x, float y, float z) nogil |
5 cdef float *c_data | 6 cdef void scale2d(self, float x, float y) nogil |
6 | 7 cdef void translate(self, float x, float y, float z) nogil |
7 cpdef flip(self) | 8 cdef void rotate_x(self, float angle) nogil |
8 cpdef scale(self, x, y, z) | 9 cdef void rotate_y(self, float angle) nogil |
9 cpdef scale2d(self, x, y) | 10 cdef void rotate_z(self, float angle) nogil |
10 cpdef translate(self, x, y, z) | |
11 cpdef rotate_x(self, angle) | |
12 cpdef rotate_y(self, angle) | |
13 cpdef rotate_z(self, angle) |