view pytouhou/utils/vector.pxd @ 754:a6875f90c141

Python: Only init SDL2 video if using SDL2 frontend.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 04 Jan 2021 20:39:30 +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)