Mercurial > touhou
changeset 620:e5361b74b9ad
Remove 3d scaling code for matrix, as it isn’t used anywhere in the codebase.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 01 Apr 2015 02:28:54 +0200 |
parents | 39874a722b76 |
children | 398860bc3b7b |
files | pytouhou/utils/matrix.pxd pytouhou/utils/matrix.pyx |
diffstat | 2 files changed, 0 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/pytouhou/utils/matrix.pxd +++ b/pytouhou/utils/matrix.pxd @@ -9,7 +9,6 @@ cdef Matrix *new_identity() nogil cdef void mul(Matrix *mat1, Matrix *mat2) nogil cdef void flip(Matrix *mat) nogil -cdef void scale(Matrix *mat, float x, float y, float z) nogil cdef void scale2d(Matrix *mat, float x, float y) nogil cdef void translate(Matrix *mat, float[3] offset) nogil cdef void translate2d(Matrix *mat, float x, float y) nogil
--- a/pytouhou/utils/matrix.pyx +++ b/pytouhou/utils/matrix.pyx @@ -55,19 +55,6 @@ cdef void flip(Matrix *mat) nogil: data[i] = -data[i] -cdef void scale(Matrix *mat, float x, float y, float z) nogil: - cdef float coordinate[3] - - data = <float*>mat - coordinate[0] = x - coordinate[1] = y - coordinate[2] = z - - for i in range(3): - for j in range(4): - data[4*i+j] *= coordinate[i] - - cdef void scale2d(Matrix *mat, float x, float y) nogil: data = <float*>mat for i in range(4):