Mercurial > touhou
view pytouhou/utils/vector.pxd @ 436:cb5c68598ab0
Cythonize pytouhou.utils.maths and pytouhou.utils.vector.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 07 Aug 2013 11:34:42 +0200 |
parents | |
children | 7f016dfbdfb1 |
line wrap: on
line source
cdef class Vector: cdef float x, y, z cdef Vector sub(self, Vector other) cdef Vector cross(Vector vec1, Vector vec2) cdef float dot(Vector vec1, Vector vec2) cdef Vector normalize(Vector vec)