view pytouhou/utils/vector.pxd @ 606:3c2f96f1d715

Fix compilation under Cython 0.22, by making the pyx and the pxd declarations’ except clause similar.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 26 Nov 2014 13:36:38 +0100
parents 7f016dfbdfb1
children
line wrap: on
line source

cdef struct Vector:
    float x, y, z

cdef Vector sub(Vector vec1, Vector vec2)
cdef Vector cross(Vector vec1, Vector vec2)
cdef float dot(Vector vec1, Vector vec2) nogil
cdef Vector normalize(Vector vec)