view pytouhou/utils/vector.pxd @ 488:791faab05445

Don’t compile files that don’t benefit from static typing.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 04 Oct 2013 11:11:02 +0200
parents cb5c68598ab0
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)